blob: a3af511d86695c87eb8c8d9d1bbbe2579b808999 (
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
|
# tty mode round-trip: Ctrl-b in, run a command, Ctrl-b out. Shift-Esc is the
# same toggle (CSI 27;2u — needs a host that reports modifiers on Escape); a
# PLAIN Esc is not, it still goes to the shell.
file m.txt marker
start 30 100 -n 3
wait 8000 m.txt
stable 700 20000
key c-b
stable 600 8000
snap tty-on
text echo SNAP''OK
key enter
wait 8000 SNAPOK
stable 700 10000
snap tty-echo
key c-b
stable 600 8000
snap tty-off
# Shift-Esc: in, then out again — the same toggle from the other key
send \e[27;2u
stable 600 8000
snap shift-esc-on
send \e[27;2u
stable 600 8000
snap shift-esc-off
|