Tactile
Terminal protocol proposal · 15 October 2026

Tactile

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.

Try it on your trackpad

The same finger movement, two terminal apps

phase: — scale 1.000
1PAGE OF 12 · SWIPE SIDEWAYS

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.

today: SGR mouse reporting0 events

    
with Tactile0 events

    

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.

Measured on an Apple M1 MacBook, 60 Hz display

Why guessing from timing fails

4–8 events

That is all a quick swipe of the fingers produces, over 34–117 ms.

up to 68 events

That much momentum follows it, for up to 1.1 s. Today an app cannot tell it from the fingers.

60/s

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/).

How it works

Five messages, on the same channel as the keyboard

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
FlagFeatureWhat it givesStatus
1scrollscrolling in hundredths of a pixelLevel 1
2phaseswhen the fingers start and liftLevel 1
4momentummomentum, only when asked forLevel 1
8pinchpinch with scaleLevel 1
16hapticsa trackpad click, with the user's consentLevel 1
32–256rotate, swipe, hold, pressurerotation, multi-finger swipes, resting fingers, pressureExploratory
Where it stands

Roadmap

StepStatus
Specification (English, Polish), grammar, test vectors, reference parserdone
Measuring native trackpad input on macOSdone
Ghostty fork with Tactile, and an event viewernext
Support in the libvaxis library; the fancy-cat PDF viewer turning one page per swipeplanned
Pinch and haptics, a showcase app, a demo videoplanned
Discussions with the authors of Ghostty, kitty, tmux and TUI librariesplanned
Your feedback

Ask, object, propose

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.