blob: c20db2f7713590c43de52e55e3cc791004c3300f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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
|