comparison src/libvterm/t/02parser.test @ 11621:b8299e742f41 v8.0.0693

patch 8.0.0693: no terminal emulator support commit https://github.com/vim/vim/commit/e4f25e4a8db2c8a8a71a4ba2a68540b3ab341e42 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 7 11:54:15 2017 +0200 patch 8.0.0693: no terminal emulator support Problem: No terminal emulator support. Cannot properly run commands in the GUI. Cannot run a job interactively with an ssh connection. Solution: Very early implementation of the :terminal command. Includes libvterm converted to ANSI C. Many parts still missing.
author Christian Brabandt <cb@256bit.org>
date Fri, 07 Jul 2017 12:00:04 +0200
parents
children 1d595fada804
comparison
equal deleted inserted replaced
11620:fb788b3997c1 11621:b8299e742f41
1 INIT
2 UTF8 0
3 WANTPARSER
4
5 !Basic text
6 PUSH "hello"
7 text 0x68, 0x65, 0x6c, 0x6c, 0x6f
8
9 !C0
10 PUSH "\x03"
11 control 3
12
13 PUSH "\x1f"
14 control 0x1f
15
16 !C1 8bit
17 PUSH "\x83"
18 control 0x83
19
20 PUSH "\x9f"
21 control 0x9f
22
23 !C1 7bit
24 PUSH "\e\x43"
25 control 0x83
26
27 PUSH "\e\x5f"
28 control 0x9f
29
30 !High bytes
31 PUSH "\xa0\xcc\xfe"
32 text 0xa0, 0xcc, 0xfe
33
34 !Mixed
35 PUSH "1\n2"
36 text 0x31
37 control 10
38 text 0x32
39
40 !Escape
41 PUSH "\e="
42 escape "="
43
44 !Escape 2-byte
45 PUSH "\e(X"
46 escape "(X"
47
48 !Split write Escape
49 PUSH "\e("
50 PUSH "Y"
51 escape "(Y"
52
53 !Escape cancels Escape, starts another
54 PUSH "\e(\e)Z"
55 escape ")Z"
56
57 !CAN cancels Escape, returns to normal mode
58 PUSH "\e(\x{18}AB"
59 text 0x41, 0x42
60
61 !C0 in Escape interrupts and continues
62 PUSH "\e(\nX"
63 control 10
64 escape "(X"
65
66 !CSI 0 args
67 PUSH "\e[a"
68 csi 0x61 *
69
70 !CSI 1 arg
71 PUSH "\e[9b"
72 csi 0x62 9
73
74 !CSI 2 args
75 PUSH "\e[3;4c"
76 csi 0x63 3,4
77
78 !CSI 1 arg 1 sub
79 PUSH "\e[1:2c"
80 csi 0x63 1+,2
81
82 !CSI many digits
83 PUSH "\e[678d"
84 csi 0x64 678
85
86 !CSI leading zero
87 PUSH "\e[007e"
88 csi 0x65 7
89
90 !CSI qmark
91 PUSH "\e[?2;7f"
92 csi 0x66 L=3f 2,7
93
94 !CSI greater
95 PUSH "\e[>c"
96 csi 0x63 L=3e *
97
98 !CSI SP
99 PUSH "\e[12 q"
100 csi 0x71 12 I=20
101
102 !Mixed CSI
103 PUSH "A\e[8mB"
104 text 0x41
105 csi 0x6d 8
106 text 0x42
107
108 !Split write
109 PUSH "\e"
110 PUSH "[a"
111 csi 0x61 *
112 PUSH "foo\e["
113 text 0x66, 0x6f, 0x6f
114 PUSH "4b"
115 csi 0x62 4
116 PUSH "\e[12;"
117 PUSH "3c"
118 csi 0x63 12,3
119
120 !Escape cancels CSI, starts Escape
121 PUSH "\e[123\e9"
122 escape "9"
123
124 !CAN cancels CSI, returns to normal mode
125 PUSH "\e[12\x{18}AB"
126 text 0x41, 0x42
127
128 !C0 in Escape interrupts and continues
129 PUSH "\e[12\n;3X"
130 control 10
131 csi 0x58 12,3
132
133 !OSC BEL
134 PUSH "\e]1;Hello\x07"
135 osc "1;Hello"
136
137 !OSC ST (7bit)
138 PUSH "\e]1;Hello\e\\"
139 osc "1;Hello"
140
141 !OSC ST (8bit)
142 PUSH "\x{9d}1;Hello\x9c"
143 osc "1;Hello"
144
145 !Escape cancels OSC, starts Escape
146 PUSH "\e]Something\e9"
147 escape "9"
148
149 !CAN cancels OSC, returns to normal mode
150 PUSH "\e]12\x{18}AB"
151 text 0x41, 0x42
152
153 !C0 in OSC interrupts and continues
154 PUSH "\e]2;\nBye\x07"
155 control 10
156 osc "2;Bye"
157
158 !DCS BEL
159 PUSH "\ePHello\x07"
160 dcs "Hello"
161
162 !DCS ST (7bit)
163 PUSH "\ePHello\e\\"
164 dcs "Hello"
165
166 !DCS ST (8bit)
167 PUSH "\x{90}Hello\x9c"
168 dcs "Hello"
169
170 !Escape cancels DCS, starts Escape
171 PUSH "\ePSomething\e9"
172 escape "9"
173
174 !CAN cancels DCS, returns to normal mode
175 PUSH "\eP12\x{18}AB"
176 text 0x41, 0x42
177
178 !C0 in OSC interrupts and continues
179 PUSH "\ePBy\ne\x07"
180 control 10
181 dcs "Bye"
182
183 !NUL ignored
184 PUSH "\x{00}"
185
186 !NUL ignored within CSI
187 PUSH "\e[12\x{00}3m"
188 csi 0x6d 123
189
190 !DEL ignored
191 PUSH "\x{7f}"
192
193 !DEL ignored within CSI
194 PUSH "\e[12\x{7f}3m"
195 csi 0x6d 123
196
197 !DEL inside text"
198 PUSH "AB\x{7f}C"
199 text 0x41,0x42
200 text 0x43