# ghostty's wire flavor of a middle click, byte-exact (mode 1002;1003;1004;1006 # as pardes requests): focus-in, per-cell hover motions (ghostty dedups per # cell, so none repeat), press keeping SGR button identity, release 'm', # trailing hover — split across writes like real input. Proves the tty input # path (vaxis parse -> core execute) handles ghostty's encoding: the live bug # ("middle click dead only in ghostty") is ghostty's GTK apprt swallowing # middle press+release BEFORE mouse reporting whenever the desktop has # gtk-enable-primary-paste=false (apprt/gtk/class/surface.zig, gcMouseDown/ # gcMouseUp) — the bytes below simply never get sent. file g.txt x start 31 100 -n 3 wait 8000 g.txt stable 700 20000 press left 5 9 release left 5 9 stable 400 5000 key c-b stable 600 8000 text printf '#!/bin/sh\necho GHOST''OK\n' > g.sh; chmod +x g.sh; clear; printf 'ZZPAD\n./g.sh\n' key enter wait 10000 ./g.sh stable 700 10000 key c-b stable 600 8000 send \x1b[I send \x1b[<35;10;10M\x1b[<35;7;8M\x1b[<35;4;6M send \x1b[<1;4;6M send \x1b[<1;4;6m send \x1b[<35;6;6M wait 10000 GHOSTOK stable 700 10000 snap ghostty-mid