summaryrefslogtreecommitdiff
path: root/test/macos-snapshots/keys.snap
blob: d4c6e0fb416fcd5e6e6c05f34bfa3d1e797e89d9 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Both halves of pardes_key's vocabulary through PardesView.typeKey: the four
# ASCII controls, the private-use navigation block, and a Ctrl chord. Markers
# are split with '' so the echoed command line can never be the thing a `wait`
# matched — the output has to be what arrived.
start 24 80
wait 8000 Newcol Joincol
wait 8000 $
stable 700 20000
# raw tty mode: characters and Enter travel to the shell through the pty
text echo al''pha
stable 400 5000
snap typed
key enter
wait 8000 alpha
stable 700 10000
snap ran
# backspace before Enter — readline owns the line while the pane is raw
text echo bra''vv
key backspace
text o
stable 400 5000
snap fixed
key enter
wait 8000 bravo
stable 700 10000
snap second
# Ctrl-b leaves raw tty mode. From here the same keys are the editor's, which
# is the half of the keyboard the pty never sees.
key c-b
stable 600 8000
snap normal
key up up left
stable 400 5000
snap moved
key home
stable 400 5000
snap home
key end
stable 400 5000
snap end
key pagedown
stable 400 5000
snap pagedown
key pageup
stable 400 5000
snap pageup
key delete
stable 400 5000
snap deleted
# Escape in normal mode is Last, and with one pane there is nowhere to go —
# which is exactly the no-op worth pinning: a regression here starts jumping.
key escape
stable 400 5000
snap escaped
# Tab falls through to Exec on the word under the cursor; parked where there is
# no word, this pins the empty case rather than spawning anything.
key tab
stable 700 10000
snap tabbed