summaryrefslogtreecommitdiff
path: root/test/snapshots/ttyclick.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 22:52:45 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commitf4ac5ee26851ced516b826953fa340008fa7069c (patch)
tree7e2c7cf5cff42f083afb4c30b1582816af60ec18 /test/snapshots/ttyclick.snap
parent6002422d04f1120ba7b0c5169d6a4ff01c1b5aff (diff)
downloadpardes-f4ac5ee26851ced516b826953fa340008fa7069c.tar.gz
pardes-f4ac5ee26851ced516b826953fa340008fa7069c.zip
the mode is a character in the layout box, not a word in the tagline
Diffstat (limited to 'test/snapshots/ttyclick.snap')
-rw-r--r--test/snapshots/ttyclick.snap12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/snapshots/ttyclick.snap b/test/snapshots/ttyclick.snap
index 9654b590..a23de75b 100644
--- a/test/snapshots/ttyclick.snap
+++ b/test/snapshots/ttyclick.snap
@@ -1,19 +1,23 @@
# 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
+# keeps tty (before: the press dropped it to normal), 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).
+# cursor but stays insert. File panes keep the old behavior (click -> normal).
+# The mode is the character in each pane's layout box: `•` normal, `^` insert,
+# `$` tty.
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
+# body click in raw tty: focus/selection only, the box stays `$`
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)
+# tag edit from tty: the box still reads `$` while the tag is being edited (the
+# body mode is PARKED, which is the invariant), and Esc hands it back — a bug
+# that lost it would show `•` in one snap or the other
press left 40 2
release left 40 2
stable 400 5000