blob: c125a2315993e319c3909bfa30eeaa79362ff1f1 (
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
33
34
35
36
37
38
|
# clicks in a shell pane never change its mode: a body click in raw tty
# keeps tty (before: the press dropped it to normal), a round trip through the
# tag leaves it alone (the tag has a mode of its own), and an insert-mode body
# click re-pins the 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 31 100 -n 3
wait 8000 probe.txt
stable 700 20000
key c-b
stable 600 8000
# body click in raw tty: focus/selection only, the box stays `$`
press left 10 5
release left 10 5
stable 400 5000
snap tty-bodyclick
# tag edit from tty: the box still reads `$` while the tag is typed into (the
# tag's mode is its own), and Esc then `:` hands the keyboard back — a bug
# that lost the body's mode would show `•` in one snap or the other
press left @Tty 3
release left @Tty 3
stable 400 5000
snap tty-tagedit
key esc
settle 100
key :
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 5
release left 12 5
stable 400 5000
snap ins-bodyclick
|