GUI apps get pixel deltas, gesture phases, momentum, pinch, pressure and haptics from the trackpad. Terminal apps get “wheel down”. Tactile is an open proposal to change that.
Scroll with two fingers, swipe sideways to turn a page, or pinch. On the left is what a terminal app receives today; on the right, what it would receive with Tactile.
Browsers do not expose gesture phases, so here begin and end are inferred from 150 ms pauses, and momentum cannot be told apart from the fingers. A Tactile terminal gets both straight from the operating system. Browsers have no trackpad haptics at all. The left pane converts movement into wheel clicks the way terminals do: one per line scrolled.
That is all a quick swipe of the fingers produces, over 34–117 ms.
That much momentum follows it, for up to 1.1 s. Today an app cannot tell it from the fingers.
The event rate while the fingers move and during momentum. Pressure: 61/s while clicking.
The recordings and the logger are in the repository (demos/trackpad-logger/).
An app asks the terminal whether it supports Tactile and enables only the features it handles. The terminal sends events as APC strings with named fields, the way the kitty graphics protocol sends images. Apps that do not ask see no change at all.
→ do you support Tactile? ESC _ tactile;q=1 ST ← yes, these are my features ESC _ tactile;supported=511;available=239;enabled=0 ST → enable scroll, phases and pinch (1 + 2 + 8) ESC _ tactile;push=11 ST ← fingers start, move, lift ESC _ tactile;e=scroll;dy=450;ph=begin ST ESC _ tactile;e=scroll;dy=1125;ph=update ST ESC _ tactile;e=scroll;dy=0;ph=end ST ← turn exactly one page here
| Flag | Feature | What it gives | Status |
|---|---|---|---|
| 1 | scroll | scrolling in hundredths of a pixel | Level 1 |
| 2 | phases | when the fingers start and lift | Level 1 |
| 4 | momentum | momentum, only when asked for | Level 1 |
| 8 | pinch | pinch with scale | Level 1 |
| 16 | haptics | a trackpad click, with the user's consent | Level 1 |
| 32–256 | rotate, swipe, hold, pressure | rotation, multi-finger swipes, resting fingers, pressure | Exploratory |
| Step | Status |
|---|---|
| Specification (English, Polish), grammar, test vectors, reference parser | done |
| Measuring native trackpad input on macOS | done |
| Ghostty fork with Tactile, and an event viewer | next |
| Support in the libvaxis library; the fancy-cat PDF viewer turning one page per swipe | planned |
| Pinch and haptics, a showcase app, a demo video | planned |
| Discussions with the authors of Ghostty, kitty, tmux and TUI libraries | planned |
This chat knows the whole specification. Ask about details, say what you would build or what bothers you. When you are done, leave a summary of the conversation as feedback for the author.
The chat works when you are signed in to claude.ai. The specification is always available above.