summaryrefslogtreecommitdiff
path: root/test/snapshots/ttyclick.snap
blob: 9654b5904bc3de31bcfe85340975e14062908e39 (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
# 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