summaryrefslogtreecommitdiff
path: root/test/snapshots/views.snap
blob: eba26baeebd9506671364ca6f7230d9db3573453 (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
# Two terminals on one session, each a view of it (src/views.zig): each its
# own layout, focus, cursor and scroll over the same panes. An edit typed in
# one is in the other; a line yanked in one is put in the other (registers
# are the session's); Newcol in one leaves the other's columns; Detach in
# one lets that terminal go and leaves the other drawing.
config Verbose off
lines v.txt 120
start 24 80 views=2 v.txt
wait 8000 line 1
stable 500 10000
snap one
view 2
wait 8000 line 1
stable 500 10000
snap two
# Typed in view 1: in view 2 too.
view 1
key i
text EDIT-ONE
key esc
settle 100
stable 400 8000
snap one-edit
view 2
stable 400 8000
snap two-sees
# Scrolled in view 2: view 1 stays at the top.
key pgdn
stable 400 8000
snap two-down
view 1
stable 400 8000
snap one-top
# Yanked in view 1, put in view 2.
key x y
stable 400 8000
view 2
key p
stable 400 8000
snap two-put
# A column in view 2 only.
key space
text cn
stable 400 8000
snap two-col
view 1
stable 400 8000
snap one-col
# Detached in view 2: its terminal let go, view 1 drawing on.
view 2
key space
text sD
stable 400 8000
view 1
key j
stable 400 8000
snap one-after