Mercurial > vim
annotate src/libvterm/t/63screen_resize.test @ 30876:2d2758ffd959 v9.0.0772
patch 9.0.0772: the libvterm code is outdated
Commit: https://github.com/vim/vim/commit/501e77766cd30d8f4bfeb04a67aff1865b5f5a41
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 16 14:35:46 2022 +0100
patch 9.0.0772: the libvterm code is outdated
Problem: The libvterm code is outdated.
Solution: Include libvterm changes from revision 790 to 801.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Oct 2022 15:45:04 +0200 |
parents | f5206c704403 |
children |
rev | line source |
---|---|
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 INIT |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 WANTSTATE |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 WANTSCREEN |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 !Resize wider preserves cells |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 PUSH "AB\r\nCD" |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
9 ?screen_chars 0,0,1,80 = "AB" |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
10 ?screen_chars 1,0,2,80 = "CD" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 RESIZE 25,100 |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
12 ?screen_chars 0,0,1,100 = "AB" |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
13 ?screen_chars 1,0,2,100 = "CD" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 !Resize wider allows print in new area |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 PUSH "AB\e[79GCD" |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
19 ?screen_chars 0,0,1,2 = "AB" |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
20 ?screen_chars 0,78,1,80 = "CD" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 RESIZE 25,100 |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
22 ?screen_chars 0,0,1,2 = "AB" |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
23 ?screen_chars 0,78,1,80 = "CD" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 PUSH "E" |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
25 ?screen_chars 0,78,1,81 = "CDE" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 !Resize shorter with blanks just truncates |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 PUSH "Top\e[10HLine 10" |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
31 ?screen_row 0 = "Top" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
32 ?screen_row 9 = "Line 10" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 ?cursor = 9,7 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 RESIZE 20,80 |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
35 ?screen_row 0 = "Top" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
36 ?screen_row 9 = "Line 10" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
37 ?cursor = 9,7 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
38 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
39 !Resize shorter with content must scroll |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
40 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
41 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
42 PUSH "Top\e[25HLine 25\e[15H" |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
43 ?screen_row 0 = "Top" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
44 ?screen_row 24 = "Line 25" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 ?cursor = 14,0 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
46 WANTSCREEN b |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
47 RESIZE 20,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
48 sb_pushline 80 = 54 6F 70 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
49 sb_pushline 80 = |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
50 sb_pushline 80 = |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
51 sb_pushline 80 = |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 sb_pushline 80 = |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
53 ?screen_row 0 = "" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
54 ?screen_row 19 = "Line 25" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
55 ?cursor = 9,0 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
56 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
57 !Resize shorter does not lose line with cursor |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
58 # See also https://github.com/neovim/libvterm/commit/1b745d29d45623aa8d22a7b9288c7b0e331c7088 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
59 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
60 WANTSCREEN -b |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
61 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
62 WANTSCREEN b |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
63 PUSH "\e[24HLine 24\r\nLine 25\r\n" |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
64 sb_pushline 80 = |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
65 ?screen_row 23 = "Line 25" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
66 ?cursor = 24,0 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
67 RESIZE 24,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
68 sb_pushline 80 = |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
69 ?screen_row 22 = "Line 25" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
70 ?cursor = 23,0 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
71 |
21042
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
72 !Resize shorter does not send the cursor to a negative row |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
73 # See also https://github.com/vim/vim/pull/6141 |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
74 RESET |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
75 WANTSCREEN -b |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
76 RESIZE 25,80 |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
77 WANTSCREEN b |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
78 PUSH "\e[24HLine 24\r\nLine 25\e[H" |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
79 ?cursor = 0,0 |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
80 RESIZE 20,80 |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
81 sb_pushline 80 = |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
82 sb_pushline 80 = |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
83 sb_pushline 80 = |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
84 sb_pushline 80 = |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
85 sb_pushline 80 = |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
86 ?cursor = 0,0 |
f5206c704403
patch 8.2.1072: missing libvterm test
Bram Moolenaar <Bram@vim.org>
parents:
20482
diff
changeset
|
87 |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
88 !Resize taller attempts to pop scrollback |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
89 RESET |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
90 WANTSCREEN -b |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
91 RESIZE 25,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
92 PUSH "Line 1\e[25HBottom\e[15H" |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
93 ?screen_row 0 = "Line 1" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
94 ?screen_row 24 = "Bottom" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
95 ?cursor = 14,0 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
96 WANTSCREEN b |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
97 RESIZE 30,80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
98 sb_popline 80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
99 sb_popline 80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
100 sb_popline 80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
101 sb_popline 80 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
102 sb_popline 80 |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
103 ?screen_row 0 = "ABCDE" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
104 ?screen_row 5 = "Line 1" |
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
105 ?screen_row 29 = "Bottom" |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
106 ?cursor = 19,0 |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
107 WANTSCREEN -b |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
108 |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
109 !Resize can operate on altscreen |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
110 RESET |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
111 WANTSCREEN a |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
112 RESIZE 25,80 |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
113 PUSH "Main screen\e[?1049h\e[HAlt screen" |
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
114 RESIZE 30,80 |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
115 ?screen_row 0 = "Alt screen" |
20482
dc88c690f19b
patch 8.2.0795: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20452
diff
changeset
|
116 PUSH "\e[?1049l" |
30876
2d2758ffd959
patch 9.0.0772: the libvterm code is outdated
Bram Moolenaar <Bram@vim.org>
parents:
21042
diff
changeset
|
117 ?screen_row 0 = "Main screen" |