# Glossary

Each term links to its normative definition in [SPEC.md](https://hotty.neuroplast.io/docs/protocol) or [SDK.md](https://hotty.neuroplast.io/docs/sdk-design).

- **area**: A cell rectangle (`c`, `r`, `w`, `h`) reporting an element's bounds in an event ([§9](https://hotty.neuroplast.io/docs/protocol#9-events)) or a touch-drag region ([§9.6](https://hotty.neuroplast.io/docs/protocol#96-touch-in-the-cells)).
- **backdrop**: A placement rendered behind terminal cells instead of above them (`b=1`), supported when the host advertises `backdrop` ([§5.2](https://hotty.neuroplast.io/docs/protocol#52-placement-aplace)).
- **capability**: A key-value field in the host's startup query response, such as protocol version, cell dimensions, or supported features ([§4](https://hotty.neuroplast.io/docs/protocol#4-detection-and-capabilities)).
- **cell**: One character slot in the terminal grid. Placement coordinates and sizes are measured in cells ([§5.3](https://hotty.neuroplast.io/docs/protocol#53-geometry)).
- **cut**: `"cut": true` on a `dragend` that something other than the user's release ended: a gesture, a new document, the placement going away, or a lost pointer ([§9.1](https://hotty.neuroplast.io/docs/protocol#91-drags)).
- **delta**: A batched list of DOM ops applied atomically to a surface ([§6.1](https://hotty.neuroplast.io/docs/protocol#61-adelta)).
- **document**: The HTML markup stored for a surface via `a=doc` ([§5.1](https://hotty.neuroplast.io/docs/protocol#51-documents-adoc)).
- **event**: User interaction reported by the host on `stdin` via `a=ev` ([§9](https://hotty.neuroplast.io/docs/protocol#9-events)).
- **feature**: An optional host capability advertised during handshake: `passthrough`, `hover`, `count`, `menu`, or `backdrop` ([§4](https://hotty.neuroplast.io/docs/protocol#4-detection-and-capabilities)).
- **finger**: A small number in each event of a touch's drag, `0` for the first finger down, so a program can tell two fingers' drags apart ([§9.1](https://hotty.neuroplast.io/docs/protocol#91-drags)).
- **gesture**: Two or more fingers on an element with `gesture` in `data-on`, or a touchpad's pinch over it, reported as one transform: `scale`, `angle`, and the fingers' centre ([§9.8](https://hotty.neuroplast.io/docs/protocol#98-gestures)).
- **host**: The terminal, addon, multiplexer, or proxy responsible for rendering surfaces ([§2](https://hotty.neuroplast.io/docs/protocol#2-conventions)).
- **keymap**: Key bindings declared on an element (`data-keys`) or inherited from ancestors (`data-keys-inner`), falling back to `<body>` when nothing is focused ([§10.2](https://hotty.neuroplast.io/docs/protocol#102-keys)).
- **morph**: Replacing an element's subtree with updated HTML while preserving focus, selection, and scroll state ([§6.2](https://hotty.neuroplast.io/docs/protocol#62-morph)).
- **op**: A single mutation inside a delta (`text`, `attr`, `var`, `morph`, etc.) targeting an element by `id` ([§6.1](https://hotty.neuroplast.io/docs/protocol#61-adelta)).
- **placement**: A visible rectangle of cells displaying a surface, created with `a=place` ([§5.2](https://hotty.neuroplast.io/docs/protocol#52-placement-aplace)).
- **pointer kind**: `"mouse"`, `"pen"`, or `"touch"`, the device that made a click, press, drag, gesture, or wheel event, as Pointer Events name it; a touchpad is `"mouse"`. The `pointer` event tells the program when the kind changes ([§9](https://hotty.neuroplast.io/docs/protocol#9-events)).
- **precise**: On a `wheel` event, `true` when the device scrolls by pixels (a touchpad, a free-spinning wheel) and `false` for a wheel's notches ([§9.9](https://hotty.neuroplast.io/docs/protocol#99-the-wheel)).
- **prefix**: A bound key that forwards itself and subsequent keystrokes directly to the program until released via `a=focus`, `a=blur`, focus loss, or a pointer press ([§10.5](https://hotty.neuroplast.io/docs/protocol#105-key-sequences)).
- **program**: The terminal application emitting surfaces and handling events ([§2](https://hotty.neuroplast.io/docs/protocol#2-conventions)).
- **rendition**: One of the three output modes an SDK supports: HTML surfaces, character cells, or plain data ([SDK.md §2.5](https://hotty.neuroplast.io/docs/sdk-design#25-three-renditions)).
- **resource**: Binary payload with a MIME type (such as an image or SVG) transmitted in-band via `a=res` and referenced as `cid:<id>` ([§7.1](https://hotty.neuroplast.io/docs/protocol#71-in-band-resources)).
- **rev**: Monotonic edit counter on a form control, included in `input`/`change` events and checked by `a=field` updates ([§6.4](https://hotty.neuroplast.io/docs/protocol#64-afield)).
- **surface**: A named HTML document and at most one active placement displaying it ([§5](https://hotty.neuroplast.io/docs/protocol#5-surfaces)).
- **window**: The visible sub-region of a surface selected by `x`, `y`, `w`, `h` on `a=place` ([§5.2](https://hotty.neuroplast.io/docs/protocol#52-placement-aplace)).

See [How hotty works](https://hotty.neuroplast.io/docs/concepts/how-it-works) to trace these pieces through a single round trip.
