Mercurial > vim
comparison src/libvterm/t/63screen_resize.test @ 20452:bf530e4e910a v8.2.0780
patch 8.2.0780: libvterm code lags behind the upstream version
Commit: https://github.com/vim/vim/commit/2d2970ea599e83acabee56be548a54a8e6b21007
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 17 16:29:47 2020 +0200
patch 8.2.0780: libvterm code lags behind the upstream version
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 724 - 726.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 May 2020 16:30:04 +0200 |
parents | src/libvterm/t/43screen_resize.test@b8299e742f41 |
children | dc88c690f19b |
comparison
equal
deleted
inserted
replaced
20451:1b223803fdb6 | 20452:bf530e4e910a |
---|---|
1 INIT | |
2 WANTSTATE | |
3 WANTSCREEN | |
4 | |
5 !Resize wider preserves cells | |
6 RESET | |
7 RESIZE 25,80 | |
8 PUSH "AB\r\nCD" | |
9 ?screen_chars 0,0,1,80 = 0x41,0x42 | |
10 ?screen_chars 1,0,2,80 = 0x43,0x44 | |
11 RESIZE 25,100 | |
12 ?screen_chars 0,0,1,100 = 0x41,0x42 | |
13 ?screen_chars 1,0,2,100 = 0x43,0x44 | |
14 | |
15 !Resize wider allows print in new area | |
16 RESET | |
17 RESIZE 25,80 | |
18 PUSH "AB\e[79GCD" | |
19 ?screen_chars 0,0,1,2 = 0x41,0x42 | |
20 ?screen_chars 0,78,1,80 = 0x43,0x44 | |
21 RESIZE 25,100 | |
22 ?screen_chars 0,0,1,2 = 0x41,0x42 | |
23 ?screen_chars 0,78,1,80 = 0x43,0x44 | |
24 PUSH "E" | |
25 ?screen_chars 0,78,1,81 = 0x43,0x44,0x45 | |
26 | |
27 !Resize shorter with blanks just truncates | |
28 RESET | |
29 RESIZE 25,80 | |
30 PUSH "Top\e[10HLine 10" | |
31 ?screen_chars 0,0,1,80 = 0x54,0x6f,0x70 | |
32 ?screen_chars 9,0,10,80 = 0x4c,0x69,0x6e,0x65,0x20,0x31,0x30 | |
33 ?cursor = 9,7 | |
34 RESIZE 20,80 | |
35 ?screen_chars 0,0,1,80 = 0x54,0x6f,0x70 | |
36 ?screen_chars 9,0,10,80 = 0x4c,0x69,0x6e,0x65,0x20,0x31,0x30 | |
37 ?cursor = 9,7 | |
38 | |
39 !Resize shorter with content must scroll | |
40 RESET | |
41 RESIZE 25,80 | |
42 PUSH "Top\e[25HLine 25\e[15H" | |
43 ?screen_chars 0,0,1,80 = 0x54,0x6f,0x70 | |
44 ?screen_chars 24,0,25,80 = 0x4c,0x69,0x6e,0x65,0x20,0x32,0x35 | |
45 ?cursor = 14,0 | |
46 WANTSCREEN b | |
47 RESIZE 20,80 | |
48 sb_pushline 80 = 54 6F 70 | |
49 sb_pushline 80 = | |
50 sb_pushline 80 = | |
51 sb_pushline 80 = | |
52 sb_pushline 80 = | |
53 ?screen_chars 0,0,1,80 = | |
54 ?screen_chars 19,0,20,80 = 0x4c,0x69,0x6e,0x65,0x20,0x32,0x35 | |
55 ?cursor = 9,0 | |
56 | |
57 !Resize shorter does not lose line with cursor | |
58 # See also https://github.com/neovim/libvterm/commit/1b745d29d45623aa8d22a7b9288c7b0e331c7088 | |
59 RESET | |
60 WANTSCREEN -b | |
61 RESIZE 25,80 | |
62 WANTSCREEN b | |
63 PUSH "\e[24HLine 24\r\nLine 25\r\n" | |
64 sb_pushline 80 = | |
65 ?screen_chars 23,0,24,10 = 0x4c,0x69,0x6e,0x65,0x20,0x32,0x35 | |
66 ?cursor = 24,0 | |
67 RESIZE 24,80 | |
68 sb_pushline 80 = | |
69 ?screen_chars 22,0,23,10 = 0x4c,0x69,0x6e,0x65,0x20,0x32,0x35 | |
70 ?cursor = 23,0 | |
71 | |
72 !Resize taller attempts to pop scrollback | |
73 RESET | |
74 WANTSCREEN -b | |
75 RESIZE 25,80 | |
76 PUSH "Line 1\e[25HBottom\e[15H" | |
77 ?screen_chars 0,0,1,80 = 0x4c,0x69,0x6e,0x65,0x20,0x31 | |
78 ?screen_chars 24,0,25,80 = 0x42,0x6f,0x74,0x74,0x6f,0x6d | |
79 ?cursor = 14,0 | |
80 WANTSCREEN b | |
81 RESIZE 30,80 | |
82 sb_popline 80 | |
83 sb_popline 80 | |
84 sb_popline 80 | |
85 sb_popline 80 | |
86 sb_popline 80 | |
87 ?screen_chars 0,0,1,80 = 0x41,0x42,0x43,0x44,0x45 | |
88 ?screen_chars 5,0,6,80 = 0x4c,0x69,0x6e,0x65,0x20,0x31 | |
89 ?screen_chars 29,0,30,80 = 0x42,0x6f,0x74,0x74,0x6f,0x6d | |
90 ?cursor = 19,0 |