summaryrefslogtreecommitdiff
path: root/test/snapshots/ttyclick.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-07 21:32:24 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit4612901858b229533c8e2ffc36db3da6bbadaa32 (patch)
tree2d95a6dcfed739ba59eb592670d139da8096cf49 /test/snapshots/ttyclick.snap
parent9da20917b6f4cf98fd9b5c2c0a904e4f6a8380a9 (diff)
downloadpardes-4612901858b229533c8e2ffc36db3da6bbadaa32.tar.gz
pardes-4612901858b229533c8e2ffc36db3da6bbadaa32.zip
clicks in a shell pane never change its mode: the body-press exitTagEdit no longer force-drops to normal (it only restores the mode a tag edit hijacked, remembered in pane.tag_mode), and the left-release cursor pin keeps the terminal's mode (files still click into normal). New ttyclick.snap covers tty body click, tty tag round trip, insert body click.
Diffstat (limited to 'test/snapshots/ttyclick.snap')
-rw-r--r--test/snapshots/ttyclick.snap32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/snapshots/ttyclick.snap b/test/snapshots/ttyclick.snap
new file mode 100644
index 00000000..9654b590
--- /dev/null
+++ b/test/snapshots/ttyclick.snap
@@ -0,0 +1,32 @@
+# clicks in a shell pane never change its mode: a body click in raw tty
+# keeps TTY (before: the press dropped it to NOR), a tag-edit round trip
+# restores the mode it hijacked, and an insert-mode body click re-pins the
+# cursor but stays INS. File panes keep the old behavior (click -> normal).
+file probe.txt marker
+start 30 100 -n 3
+wait 8000 probe.txt
+stable 700 20000
+key c-b
+stable 600 8000
+# body click in raw tty: focus/selection only, mode stays TTY
+press left 10 4
+release left 10 4
+stable 400 5000
+snap tty-bodyclick
+# tag edit from tty: INS while editing, Esc restores TTY (not NOR)
+press left 40 2
+release left 40 2
+stable 400 5000
+snap tty-tagedit
+key esc
+stable 400 5000
+snap tty-tagexit
+# out of tty, into insert: a body click moves the cursor but keeps INS
+key c-b
+stable 600 8000
+key i
+stable 400 5000
+press left 12 4
+release left 12 4
+stable 400 5000
+snap ins-bodyclick