author | Claus Gittinger <cg@exept.de> |
Tue, 23 Jul 2013 16:00:09 +0200 | |
changeset 4291 | fd935fa1dfec |
parent 4289 | c20408301621 |
child 4293 | ade403689ce1 |
permissions | -rw-r--r-- |
1361 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
2076 | 12 |
"{ Package: 'stx:libwidg2' }" |
13 |
||
930 | 14 |
TerminalView subclass:#VT100TerminalView |
998 | 15 |
instanceVariableNames:'currentParam parameters lastCursorLine' |
4269 | 16 |
classVariableNames:'TraceCSI' |
920 | 17 |
poolDictionaries:'' |
18 |
category:'Views-TerminalViews' |
|
19 |
! |
|
20 |
||
927 | 21 |
!VT100TerminalView class methodsFor:'documentation'! |
22 |
||
2116 | 23 |
ansiEscapes |
24 |
" |
|
4291 | 25 |
see also: http://www.vt100.net/docs/vt100-ug/chapter3.html |
26 |
||
2116 | 27 |
ANSI ESCAPE SEQUENCES |
28 |
=============================================================================== |
|
29 |
Wherever you see '#', that should be replaced by the appropriate number. |
|
30 |
||
31 |
ESC code sequence Function |
|
32 |
------------------- --------------------------- |
|
33 |
Cursor Controls: |
|
34 |
ESC[#;#H or ESC[#;#f Moves cusor to line #, column # |
|
35 |
ESC[#A Moves cursor up # lines |
|
36 |
ESC[#B Moves cursor down # lines |
|
37 |
ESC[#C Moves cursor forward # spaces |
|
38 |
ESC[#D Moves cursor back # spaces |
|
39 |
ESC[#;#R Reports current cursor line & column |
|
40 |
ESC[s Saves cursor position for recall later |
|
41 |
ESC[u Return to saved cursor position |
|
42 |
||
43 |
Erase Functions: |
|
44 |
ESC[2J Clear screen and home cursor |
|
45 |
ESC[K Clear to end of line |
|
46 |
||
47 |
Set Graphics Rendition: |
|
48 |
ESC[#;#;....;#m Set display attributes where # is |
|
49 |
0 for normal display |
|
50 |
1 for bold on |
|
51 |
4 underline (mono only) |
|
52 |
5 blink on |
|
53 |
7 reverse video on |
|
54 |
8 nondisplayed (invisible) |
|
55 |
30 black foreground |
|
56 |
31 red foreground |
|
57 |
32 green foreground |
|
58 |
33 yellow foreground |
|
59 |
34 blue foreground |
|
60 |
35 magenta foreground |
|
61 |
36 cyan foreground |
|
62 |
37 white foreground |
|
63 |
40 black background |
|
64 |
41 red background |
|
65 |
42 green background |
|
66 |
43 yellow background |
|
67 |
44 blue background |
|
68 |
45 magenta background |
|
69 |
46 cyan background |
|
70 |
47 white background |
|
71 |
||
72 |
ESC[=#;7h or Put screen in indicated mode where # is |
|
73 |
ESC[=h or 0 for 40 x 25 black & white |
|
74 |
ESC[=0h or 1 for 40 x 25 color |
|
75 |
ESC[?7h 2 for 80 x 25 b&w |
|
76 |
3 for 80 x 25 color |
|
77 |
4 for 320 x 200 color graphics |
|
78 |
5 for 320 x 200 b & w graphics |
|
79 |
6 for 640 x 200 b & w graphics |
|
80 |
7 to wrap at end of line |
|
81 |
||
82 |
ESC[=#;7l or ESC[=l or Resets mode # set with above command |
|
83 |
ESC[=0l or ESC[?7l |
|
84 |
||
85 |
Keyboard Reassignments: |
|
86 |
ESC[#;#;...p Keyboard reassignment. The first ASCII |
|
87 |
or ESC[""string""p code defines which code is to be |
|
88 |
or ESC[#;""string"";#; changed. The remaining codes define |
|
89 |
#;""string"";#p what it is to be changed to. |
|
90 |
||
91 |
E.g. Reassign the Q and q keys to the A and a keys (and vice versa). |
|
92 |
ESC [65;81p A becomes Q |
|
93 |
ESC [97;113p a becomes q |
|
94 |
ESC [81;65p Q becomes A |
|
95 |
ESC [113;97p q becomes a |
|
96 |
||
97 |
E.g. Reassign the F10 key to a DIR command. |
|
98 |
ESC [0;68;""dir"";13p The 0;68 is the extended ASCII code |
|
99 |
for the F10 key and 13 is the ASCII |
|
100 |
code for a carriage return. |
|
101 |
||
102 |
Other function key codes F1=59,F2=60,F3=61,F4=62,F5=63 |
|
103 |
F6=64,F7=65,F8=66,F9=67,F10=68 |
|
104 |
" |
|
105 |
! |
|
106 |
||
1361 | 107 |
copyright |
108 |
" |
|
109 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
110 |
All Rights Reserved |
|
111 |
||
112 |
This software is furnished under a license and may be used |
|
113 |
only in accordance with the terms of that license and with the |
|
114 |
inclusion of the above copyright notice. This software may not |
|
115 |
be provided or otherwise made available to, or used by, any |
|
116 |
other person. No title to or ownership of the software is |
|
117 |
hereby transferred. |
|
118 |
" |
|
119 |
||
120 |
||
121 |
! |
|
122 |
||
927 | 123 |
documentation |
124 |
" |
|
1418 | 125 |
A VT100 terminal emulator. |
126 |
Most of the functionality is inherited from my superclass, |
|
127 |
I redefine/specialize certain methods for VT100 escape sequences |
|
128 |
and vt100 keyboard codes |
|
927 | 129 |
|
1419 | 130 |
BUGS: |
131 |
VT100 wrapMode (at right margin) is not supported |
|
132 |
this may lead to wrong display when a vi is started in a small window. |
|
133 |
||
927 | 134 |
[start with:] |
135 |
VT100TerminalView openShell |
|
1418 | 136 |
|
137 |
[see also:] |
|
138 |
VT52TerminalView |
|
139 |
TelnetTool |
|
927 | 140 |
" |
141 |
||
142 |
||
143 |
! ! |
|
920 | 144 |
|
932 | 145 |
!VT100TerminalView methodsFor:'defaults'! |
927 | 146 |
|
147 |
vt100KeyCodes |
|
1420 | 148 |
"return a vt100 keyCode table" |
149 |
||
927 | 150 |
^ IdentityDictionary withKeysAndValues: |
151 |
#( |
|
152 |
#CursorUp '\e[A' |
|
153 |
#CursorDown '\e[B' |
|
154 |
#CursorRight '\e[C' |
|
155 |
#CursorLeft '\e[D' |
|
156 |
#Home '\e[H' |
|
157 |
#Escape '\e' |
|
158 |
#BackSpace '\b' |
|
159 |
#Return '\r' |
|
976 | 160 |
#Delete '\0177' |
1357 | 161 |
#Tab '\t' |
1352 | 162 |
|
163 |
#F1 '\eOP' |
|
164 |
#F2 '\eOQ' |
|
165 |
#F3 '\eOR' |
|
166 |
#F4 '\eOS' |
|
167 |
#F5 '\eOt' |
|
168 |
#F6 '\eOu' |
|
169 |
#F7 '\eOv' |
|
170 |
#F8 '\eOl' |
|
171 |
#F9 '\eOw' |
|
927 | 172 |
) |
173 |
||
174 |
"Created: / 10.6.1998 / 15:13:01 / cg" |
|
1357 | 175 |
"Modified: / 5.5.1999 / 15:01:32 / cg" |
927 | 176 |
! ! |
177 |
||
178 |
!VT100TerminalView methodsFor:'functions'! |
|
179 |
||
180 |
addLines |
|
1420 | 181 |
"Add the appropriate number of blank lines (param 1) |
182 |
at the cursor position." |
|
927 | 183 |
|
1420 | 184 |
self addLines:((parameters at:1) max:1). |
927 | 185 |
self endOfSequence |
186 |
||
187 |
"Created: / 10.6.1998 / 14:48:03 / cg" |
|
188 |
! |
|
189 |
||
1420 | 190 |
addLines:aNumber |
927 | 191 |
"Add aNumber blank lines at the position indicated by the cursor." |
192 |
||
1420 | 193 |
aNumber timesRepeat:[ |
927 | 194 |
self insertLine:'' before:cursorLine |
195 |
] |
|
196 |
||
197 |
"Created: / 10.6.1998 / 14:49:30 / cg" |
|
198 |
! |
|
199 |
||
949 | 200 |
autoMargin:aBoolean |
201 |
"set/clear autowrap at end of line (not yet implemented)" |
|
202 |
||
2268 | 203 |
autoWrapFlag := aBoolean |
949 | 204 |
! |
205 |
||
2192 | 206 |
clearLines:arg |
1420 | 207 |
"Clear some part of the current line, as indicated by the first parameter: |
208 |
0 - clear to EOL |
|
209 |
1 - clear from beginning to cursorCol |
|
210 |
2 - clear entire line |
|
211 |
" |
|
927 | 212 |
|
1001
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
213 |
arg = 0 ifTrue: [^self doClearToEndOfLine]. |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
214 |
arg = 1 ifTrue: [^self doClearFromBeginningOfLine]. |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
215 |
arg = 2 ifTrue: [^self doClearEntireLine] |
927 | 216 |
|
217 |
"Created: / 10.6.1998 / 14:44:22 / cg" |
|
1001
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
218 |
"Modified: / 21.7.1998 / 20:07:42 / cg" |
927 | 219 |
! |
220 |
||
949 | 221 |
deleteCharacters |
1420 | 222 |
"Delete the appropriate number of characters (param 1) |
223 |
at the cursor position." |
|
949 | 224 |
|
225 |
|n| |
|
226 |
||
227 |
n := ((parameters at: 1) max: 1). |
|
228 |
self deleteFromLine:cursorLine col:cursorCol toLine:cursorLine col:cursorCol+n-1. |
|
229 |
||
230 |
"Created: / 12.6.1998 / 21:19:02 / cg" |
|
231 |
"Modified: / 12.6.1998 / 21:19:15 / cg" |
|
232 |
! |
|
233 |
||
2192 | 234 |
displayMode:p1 |
1420 | 235 |
"Set the current display mode (emphasis) as specified by param 1." |
927 | 236 |
|
2192 | 237 |
|clrName| |
1352 | 238 |
|
239 |
||
1020 | 240 |
"/ self endEntry. |
1352 | 241 |
p1 == 1 ifTrue:[ |
951 | 242 |
"/ ESC-[-1-m -> bold |
243 |
||
1287
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
244 |
"/ workaround: windows bold fonts are |
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
245 |
"/ wider, leading to ugly looking output |
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
246 |
"/ Therefore, use red color instead of bold |
1667 | 247 |
device platformName = 'WIN32' ifTrue:[ |
1287
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
248 |
self color:Color red. |
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
249 |
] ifFalse:[ |
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
250 |
self bold. |
48e6c847a554
use red color instead of bold
Claus Gittinger <cg@exept.de>
parents:
1056
diff
changeset
|
251 |
]. |
951 | 252 |
^ self. |
253 |
]. |
|
1352 | 254 |
p1 == 4 ifTrue:[ |
255 |
"/ ESC-[-4-m -> underline |
|
256 |
||
257 |
self underline. |
|
258 |
^ self. |
|
259 |
]. |
|
260 |
p1 == 5 ifTrue:[ |
|
261 |
"/ ESC-[-5-m -> blink |
|
262 |
||
263 |
self color:Color blue. |
|
264 |
^ self. |
|
265 |
]. |
|
266 |
p1 == 7 ifTrue:[ |
|
267 |
"/ ESC-[-7-m -> reverse |
|
951 | 268 |
|
978 | 269 |
self reverse. |
270 |
^ self. |
|
271 |
]. |
|
2116 | 272 |
p1 == 8 ifTrue:[ |
273 |
"/ ESC-[-8-m -> invisible |
|
274 |
^ self. |
|
275 |
]. |
|
276 |
(p1 between:30 and:37) ifTrue:[ |
|
277 |
"/ ESC-[-30-m -> black fg color |
|
278 |
"/ ESC-[-31-m -> red fg color |
|
279 |
"/ ... |
|
280 |
"/ ESC-[-37-m -> white fg color |
|
281 |
clrName := #(black red green yellow blue magenta cyan white) at:(p1-30+1). |
|
282 |
self color:(Color perform:clrName). |
|
283 |
^ self. |
|
284 |
]. |
|
285 |
(p1 between:40 and:47) ifTrue:[ |
|
286 |
"/ ESC-[-40-m -> black bg color |
|
287 |
"/ ... |
|
288 |
"/ ESC-[-47-m -> white bg color |
|
289 |
clrName := #(black red green yellow blue magenta cyan white) at:(p1-40+1). |
|
290 |
self bgColor:(Color perform:clrName). |
|
291 |
^ self. |
|
292 |
]. |
|
1020 | 293 |
|
978 | 294 |
"/ ESC-[-any-m -> normal |
295 |
self normal. |
|
927 | 296 |
|
297 |
"Created: / 10.6.1998 / 15:01:16 / cg" |
|
1352 | 298 |
"Modified: / 5.5.1999 / 00:53:15 / cg" |
927 | 299 |
! |
300 |
||
2192 | 301 |
doClearDisplay:arg |
1420 | 302 |
"Clear some part of the current screen, as indicated by the first parameter. |
303 |
0 - clear to endOfScreen |
|
304 |
1 - clear from beginning of screen to cursorCol |
|
305 |
2 - clear entire screen |
|
306 |
" |
|
1001
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
307 |
|
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
308 |
arg = 0 ifTrue: [^self doClearToEndOfScreen]. |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
309 |
arg = 1 ifTrue: [^self doClearFromBeginningOfScreen]. |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
310 |
arg = 2 ifTrue: [^self doClearEntireScreen] |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
311 |
|
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
312 |
"Created: / 21.7.1998 / 20:05:07 / cg" |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
313 |
"Modified: / 21.7.1998 / 20:07:36 / cg" |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
314 |
! |
7fe14ad43ae3
fixed clear-to-end-of-screen function.
Claus Gittinger <cg@exept.de>
parents:
998
diff
changeset
|
315 |
|
1020 | 316 |
insertCharacters |
1420 | 317 |
"Insert the appropriate number of spaces (param 1) at the cursor position." |
949 | 318 |
|
319 |
|s| |
|
320 |
||
321 |
s := String new:((parameters at: 1) max: 1). |
|
1420 | 322 |
self insertStringWithoutCRs:s atLine:cursorLine col:cursorCol. |
949 | 323 |
|
324 |
"Modified: / 12.6.1998 / 21:14:25 / cg" |
|
1020 | 325 |
"Created: / 28.7.1998 / 00:53:51 / cg" |
949 | 326 |
! |
327 |
||
927 | 328 |
move |
329 |
"Move to the locations indicated by the first and second parameters." |
|
330 |
||
2217 | 331 |
| row column | |
332 |
||
333 |
row := (self getParameter:1 withDefault:1). |
|
334 |
column := (self getParameter:2 withDefault:1). |
|
2202 | 335 |
Debug ifTrue:[ |
2217 | 336 |
Transcript show:'move to column/row:'; show:column; show:'/'; showCR:row. |
337 |
]. |
|
338 |
self moveToX:column y:row. |
|
927 | 339 |
|
340 |
"Created: / 10.6.1998 / 14:40:01 / cg" |
|
978 | 341 |
"Modified: / 20.6.1998 / 18:49:12 / cg" |
927 | 342 |
! |
343 |
||
344 |
moveToX: xLocation y: yLocation |
|
345 |
"Position the cursor at the location given by xLocation and yLocation. |
|
346 |
Ignore the command if the parameters are outside the allowable range." |
|
347 |
||
2192 | 348 |
Debug ifTrue:[ |
349 |
Transcript show:'numberOfColumns '; showCR:numberOfColumns. |
|
350 |
Transcript show:'numberOfLines '; showCR:numberOfLines. |
|
351 |
]. |
|
978 | 352 |
"/ (xLocation < 1 or: [xLocation > numberOfColumns]) ifTrue: [^self]. |
353 |
"/ (yLocation < 1 or: [yLocation > numberOfLines]) ifTrue: [^self]. |
|
952 | 354 |
|
949 | 355 |
self cursorVisibleLine:yLocation col:xLocation. |
927 | 356 |
|
357 |
"Created: / 10.6.1998 / 14:40:49 / cg" |
|
978 | 358 |
"Modified: / 20.6.1998 / 20:27:11 / cg" |
927 | 359 |
! |
360 |
||
944 | 361 |
reportTerminalType |
1420 | 362 |
"currently, only cursor position is supported (param 6)" |
363 |
||
944 | 364 |
(parameters at: 1) == 6 ifTrue:[ |
365 |
"/ report position |
|
1020 | 366 |
self endEntry. |
4286 | 367 |
Debug ifTrue:[ |
368 |
Transcript showCR:'report terminal type' |
|
369 |
]. |
|
944 | 370 |
inStream nextPut:(Character esc). |
371 |
inStream nextPutAll:'[' |
|
372 |
, cursorLine printString |
|
373 |
, ';' |
|
374 |
, cursorCol printString |
|
375 |
, 'R'. |
|
376 |
^ self |
|
377 |
]. |
|
378 |
(parameters at: 1) == 7 ifTrue:[ |
|
379 |
"/ display name |
|
380 |
]. |
|
381 |
||
382 |
"Created: / 11.6.1998 / 23:05:50 / cg" |
|
1020 | 383 |
"Modified: / 28.7.1998 / 00:54:30 / cg" |
944 | 384 |
! |
385 |
||
927 | 386 |
resetDefaults |
387 |
"Reset the default parameters" |
|
388 |
||
2192 | 389 |
|l1 l2| |
949 | 390 |
|
978 | 391 |
|
949 | 392 |
l1 := (parameters at: 1). |
393 |
l2 := (parameters at: 2). |
|
2192 | 394 |
Debug ifTrue:[ |
395 |
Transcript show:'resetDefaults:'; show:l1;show:' ';showCR:l2. |
|
396 |
]. |
|
949 | 397 |
(l1 ~~ 0 and:[l2 ~~ 0]) ifTrue:[ |
398 |
rangeStartLine := l1. |
|
399 |
rangeEndLine := l2. |
|
400 |
] ifFalse:[ |
|
978 | 401 |
"/ self halt. |
949 | 402 |
]. |
403 |
||
978 | 404 |
"/ (rangeStartLine == 1 and:[rangeEndLine == numberOfLines]) ifTrue:[ |
405 |
"/ rangeEndLine := rangeStartLine := nil. |
|
406 |
"/ ]. |
|
407 |
||
4291 | 408 |
alternateKeypadMode := false. |
978 | 409 |
"/ autoLineFeed := false. |
410 |
"/ autoMargin := true. |
|
411 |
"/ displayMode := 0. "Normal display"!! !! |
|
927 | 412 |
|
413 |
"Created: / 10.6.1998 / 14:50:53 / cg" |
|
978 | 414 |
"Modified: / 20.6.1998 / 20:28:26 / cg" |
920 | 415 |
! ! |
416 |
||
417 |
!VT100TerminalView methodsFor:'initialization'! |
|
418 |
||
927 | 419 |
initialize |
420 |
super initialize. |
|
949 | 421 |
|
2268 | 422 |
autoWrapFlag := true. |
4291 | 423 |
alternateKeypadMode := false. |
2192 | 424 |
parameters := Array new:8. |
927 | 425 |
self endOfSequence |
426 |
||
427 |
"Created: / 10.6.1998 / 14:46:07 / cg" |
|
953 | 428 |
"Modified: / 13.6.1998 / 13:58:01 / cg" |
927 | 429 |
! |
430 |
||
431 |
initializeKeyboardSequences |
|
1420 | 432 |
"setup my keyboard sequences for a vt100" |
433 |
||
927 | 434 |
kbdSequences := (self vt100KeyCodes) |
435 |
||
436 |
"Modified: / 9.6.1998 / 20:49:21 / cg" |
|
437 |
"Created: / 10.6.1998 / 15:12:32 / cg" |
|
438 |
! ! |
|
439 |
||
4269 | 440 |
!VT100TerminalView methodsFor:'misc'! |
441 |
||
442 |
traceCSI:char |
|
443 |
state infoPrint. '-' infoPrint. |
|
444 |
char asciiValue > 32 ifTrue:[ |
|
445 |
char infoPrint. |
|
446 |
] ifFalse:[ |
|
447 |
'0x' infoPrint. char codePoint hexPrintString infoPrint. |
|
448 |
]. |
|
449 |
currentParam > 1 ifTrue:[ |
|
450 |
' ' infoPrint. |
|
451 |
(parameters at:1) infoPrintCR. |
|
452 |
||
453 |
currentParam > 2 ifTrue:[ |
|
454 |
' ' infoPrint. |
|
455 |
(parameters at:2) infoPrintCR. |
|
456 |
||
457 |
currentParam > 3 ifTrue:[ |
|
458 |
' ' infoPrint. |
|
459 |
(parameters at:3) infoPrintCR. |
|
460 |
]. |
|
461 |
]. |
|
462 |
]. |
|
463 |
! ! |
|
464 |
||
4221 | 465 |
!VT100TerminalView methodsFor:'os functions (xterm)'! |
466 |
||
467 |
osCommand |
|
468 |
|cmdKey cmdValue| |
|
469 |
||
470 |
cmdKey := parameters at:1. |
|
471 |
cmdValue := parameters at:2. |
|
4269 | 472 |
|
4221 | 473 |
cmdKey == 0 ifTrue:[ |
474 |
"/ change icon name and window title |
|
475 |
masterWindow notNil ifTrue:[ |
|
476 |
masterWindow label:cmdValue. |
|
477 |
masterWindow iconLabel:cmdValue. |
|
478 |
]. |
|
479 |
self endOfSequence. |
|
480 |
^ self. |
|
481 |
]. |
|
482 |
cmdKey == 1 ifTrue:[ |
|
483 |
"/ change icon name |
|
484 |
masterWindow notNil ifTrue:[ |
|
485 |
masterWindow iconLabel:cmdValue. |
|
486 |
]. |
|
487 |
self endOfSequence. |
|
488 |
^ self. |
|
489 |
]. |
|
490 |
cmdKey == 2 ifTrue:[ |
|
491 |
"/ change window title |
|
492 |
masterWindow notNil ifTrue:[ |
|
493 |
masterWindow label:cmdValue. |
|
494 |
]. |
|
495 |
self endOfSequence. |
|
496 |
^ self. |
|
497 |
]. |
|
498 |
cmdKey == 3 ifTrue:[ |
|
499 |
"/ set x property |
|
500 |
self endOfSequence. |
|
501 |
^ self. |
|
502 |
]. |
|
503 |
cmdKey == 4 ifTrue:[ |
|
504 |
"/ change color |
|
505 |
self endOfSequence. |
|
506 |
^ self. |
|
507 |
]. |
|
508 |
self breakPoint:#cg. |
|
509 |
self endOfSequence |
|
510 |
! ! |
|
511 |
||
2498 | 512 |
!VT100TerminalView methodsFor:'processing-input'! |
927 | 513 |
|
2194 | 514 |
addToParameter:char |
927 | 515 |
"The parameter char is a digit. Add it to the current parameter." |
516 |
||
517 |
| param | |
|
518 |
||
2192 | 519 |
param := (parameters at:currentParam) ? 0. |
927 | 520 |
parameters at:currentParam put:(param * 10 + char digitValue) |
521 |
||
522 |
"Created: / 10.6.1998 / 14:39:00 / cg" |
|
523 |
! |
|
524 |
||
1420 | 525 |
endOfSequence |
526 |
"private - reset state-machine at end of escape-sequence" |
|
927 | 527 |
|
528 |
state := 0. |
|
529 |
currentParam := 1. |
|
2192 | 530 |
"/ parameters := Array new:8 withAll:0. |
531 |
parameters atAllPut:nil. |
|
927 | 532 |
|
533 |
"Created: / 10.6.1998 / 14:30:40 / cg" |
|
534 |
"Modified: / 10.6.1998 / 14:30:57 / cg" |
|
535 |
! |
|
536 |
||
4269 | 537 |
evaluateProcessCharacter:char return:aSymbol |
2207 | 538 |
" evaluate the return value of the process state methods except for state 0 |
539 |
" |
|
540 |
||
4271 | 541 |
aSymbol isNil ifTrue:[ |
542 |
^ self. |
|
543 |
]. |
|
2207 | 544 |
aSymbol == #waitForNextChar ifTrue:[ |
545 |
^ self. |
|
546 |
]. |
|
547 |
aSymbol == #unknown ifTrue:[ |
|
4270 | 548 |
('VT100TerminalView [info]: unknown character %1 in state %2' |
4269 | 549 |
bindWith:(char codePoint hexPrintString) |
550 |
with:state) infoPrintCR. |
|
2207 | 551 |
self doNothing. |
552 |
^ self |
|
553 |
]. |
|
554 |
aSymbol == #sequenceComplete ifTrue:[ |
|
555 |
self endOfSequence. |
|
556 |
^ self. |
|
557 |
]. |
|
4269 | 558 |
self halt:'unexpected return value from state processing' |
2207 | 559 |
! |
560 |
||
561 |
nextPut:char |
|
4286 | 562 |
" process a character (i.e. from the shell's output)" |
937 | 563 |
|
2202 | 564 |
|processCharacterReturn| |
932 | 565 |
|
2192 | 566 |
Debug ifTrue:[ |
2202 | 567 |
Transcript |
4286 | 568 |
show:'VT100: nextPut - state: '; show:state; |
569 |
show:' got: '; |
|
2202 | 570 |
showCR:char storeString |
2192 | 571 |
]. |
4291 | 572 |
"/ char == Character return ifTrue:[self halt]. |
4289 | 573 |
state == 0 ifTrue:[ |
574 |
processCharacterReturn := self processState0:char. |
|
575 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
|
576 |
^ self |
|
577 |
]. |
|
2207 | 578 |
state == #gotReturn ifTrue:[ |
579 |
processCharacterReturn := self processStateGotReturn:char. |
|
580 |
processCharacterReturn == #sequenceComplete ifTrue:[ |
|
2350
0f9ca9ecf77a
the state have to be reset if sequence is complete in #gotReturn
penk
parents:
2268
diff
changeset
|
581 |
self endOfSequence. |
2207 | 582 |
^ self. |
583 |
]. |
|
4269 | 584 |
^ self |
2207 | 585 |
]. |
586 |
state == #gotESC ifTrue:[ |
|
587 |
processCharacterReturn := self processStateGotESC:char. |
|
4269 | 588 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
2207 | 589 |
^ self. |
927 | 590 |
]. |
2207 | 591 |
state == #gotCSI ifTrue:[ |
592 |
processCharacterReturn := self processStateGotCSI:char. |
|
4269 | 593 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
2207 | 594 |
^ self. |
2202 | 595 |
]. |
2207 | 596 |
state == #gotCSI2 ifTrue:[ |
597 |
processCharacterReturn := self processStateGotCSI2:char. |
|
4269 | 598 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
2207 | 599 |
^ self. |
2192 | 600 |
]. |
2207 | 601 |
state == #gotCSI3 ifTrue:[ |
602 |
processCharacterReturn := self processStateGotCSI3:char. |
|
4269 | 603 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
2207 | 604 |
^ self. |
2192 | 605 |
]. |
2207 | 606 |
state == #gotXTERMCSI ifTrue:[ |
607 |
processCharacterReturn := self processStateGotXTERMCSI:char. |
|
4269 | 608 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
2207 | 609 |
^ self. |
927 | 610 |
]. |
4221 | 611 |
state == #gotXTERMCSI2 ifTrue:[ |
612 |
processCharacterReturn := self processStateGotXTERMCSI2:char. |
|
4269 | 613 |
self evaluateProcessCharacter:char return:processCharacterReturn. |
4221 | 614 |
^ self. |
615 |
]. |
|
616 |
self halt:'unknown state'. |
|
2192 | 617 |
self doNothing. |
618 |
^ self |
|
2202 | 619 |
! |
620 |
||
2207 | 621 |
processState0:char |
2202 | 622 |
" change state or processing character; return |
623 |
#waitForNextChar - state was changed and wait for next characters |
|
624 |
#sequenceComplete - command processed |
|
625 |
#unknown - unknown character for this state |
|
626 |
" |
|
627 |
||
628 |
char asciiValue < 32 ifTrue:[ |
|
2207 | 629 |
(char == Character esc) ifTrue:[ |
630 |
state := #gotESC. |
|
631 |
^ #waitForNextChar |
|
632 |
]. |
|
4269 | 633 |
|
2202 | 634 |
( char == Character nl "nl or '\n'" |
4283 | 635 |
or:[(char == (Character value:16r0b))]) ifTrue:[ |
2207 | 636 |
translateNLToCRNL == true ifTrue:[ |
637 |
self endEntry. |
|
638 |
self cursorToBeginOfLine. |
|
639 |
]. |
|
2202 | 640 |
self endEntry. |
641 |
self doCursorDown:1. |
|
2207 | 642 |
^ #waitForNextChar. |
2202 | 643 |
]. |
4269 | 644 |
|
2202 | 645 |
(char == Character return) ifTrue:[ |
4291 | 646 |
(rangeEndLine notNil and:[rangeEndLine ~~ numberOfLines]) ifTrue:[ |
2202 | 647 |
self endEntry. |
648 |
self cursorToBeginOfLine. |
|
649 |
] ifFalse:[ |
|
650 |
state := #gotReturn. |
|
651 |
]. |
|
2207 | 652 |
^ #waitForNextChar. |
2202 | 653 |
]. |
4269 | 654 |
|
2202 | 655 |
(char == Character backspace) ifTrue:[ |
656 |
self endEntry. |
|
657 |
self cursorLeft. |
|
2207 | 658 |
^ #waitForNextChar "/ doBackspace |
2202 | 659 |
]. |
4269 | 660 |
|
2202 | 661 |
(char == Character bell) ifTrue:[ |
2782 | 662 |
self shown ifTrue:[ |
663 |
self beep. |
|
664 |
]. |
|
2207 | 665 |
^ #waitForNextChar |
2202 | 666 |
]. |
4269 | 667 |
|
2202 | 668 |
(char == (Character value:5)) ifTrue:[ |
669 |
"/ Transmission answerback message |
|
670 |
self reportTerminalType. |
|
2207 | 671 |
^ #waitForNextChar |
2202 | 672 |
]. |
4269 | 673 |
|
2202 | 674 |
( char == (Character value:16r18) "/Cancel |
675 |
or:[ char == (Character value:16r1A) "/Substitute |
|
676 |
]) ifTrue:[ |
|
677 |
self nextPut:(Character value:16r2). |
|
2207 | 678 |
^ #waitForNextChar |
2202 | 679 |
] |
4269 | 680 |
|
2207 | 681 |
" |
4269 | 682 |
all unsupported control characters (also vt102): |
2207 | 683 |
Character value:16r3 ->End of text |
684 |
Character value:16r4 ->End of transmission |
|
685 |
Character tab ->Horizontal tab |
|
686 |
Character value:16rc ->Form feed |
|
687 |
Character value:16re ->SO shift out |
|
688 |
Character value:16rf ->SI shift in |
|
689 |
Character value:16r11 ->Device control 1 |
|
690 |
Character value:16r13 ->Device control 3 |
|
691 |
". |
|
692 |
char ~~ Character tab ifTrue:[ |
|
693 |
char asciiValue ~~ 0 ifTrue:[ |
|
694 |
('VT100 [info]: unhandled control key: ' , char storeString) infoPrintCR. |
|
695 |
]. |
|
696 |
^ #waitForNextChar. |
|
697 |
] |
|
2202 | 698 |
]. |
4289 | 699 |
super nextPut:char. |
4271 | 700 |
^ nil |
2192 | 701 |
! |
702 |
||
703 |
processStateGotCSI2:char |
|
704 |
" change state or processing character; return |
|
705 |
#waitForNextChar - state was changed and wait for next characters |
|
706 |
#sequenceComplete - command processed |
|
707 |
#unknown - unknown character for this state |
|
708 |
" |
|
709 |
||
710 |
char == $; ifTrue: [ |
|
711 |
currentParam := (currentParam + 1) min: 8. |
|
712 |
^ #waitForNextChar |
|
713 |
]. |
|
714 |
char isDigit ifTrue: [ |
|
2194 | 715 |
self addToParameter:char. |
2192 | 716 |
^ #waitForNextChar |
717 |
]. |
|
4269 | 718 |
|
719 |
TraceCSI == true ifTrue:[ self traceCSI:char ]. |
|
720 |
(char == $l or:[char == $h]) ifTrue: [ |
|
2192 | 721 |
"/ (parameters at: 1) = 1 ifTrue: [app_cur_keys:(char == $h)]. |
722 |
"/ (parameters at: 1) = 2 ifTrue: [mode132:(char == $h)]. |
|
723 |
"/ (parameters at: 1) = 4 ifTrue: [smoothScroll:(char == $h)]. |
|
724 |
"/ (parameters at: 1) = 5 ifTrue: [reverseVideo:(char == $h)]. |
|
725 |
"/ (parameters at: 1) = 6 ifTrue: [decom:(char == $h)]. |
|
726 |
self endEntry. |
|
727 |
(parameters at: 1) = 7 ifTrue: [self autoMargin:(char == $h)]. |
|
728 |
^ #sequenceComplete |
|
729 |
]. |
|
730 |
^ #unknown |
|
731 |
! |
|
732 |
||
733 |
processStateGotCSI3:char |
|
734 |
" change state or processing character; return |
|
735 |
#waitForNextChar - state was changed and wait for next characters |
|
736 |
#sequenceComplete - command processed |
|
737 |
#unknown - unknown character for this state |
|
738 |
" |
|
739 |
||
4269 | 740 |
TraceCSI == true ifTrue:[ self traceCSI:char ]. |
2192 | 741 |
^ #unknown |
742 |
! |
|
743 |
||
744 |
processStateGotCSI:char |
|
745 |
" change state or processing character; return |
|
746 |
#waitForNextChar - state was changed and wait for next characters |
|
747 |
#sequenceComplete - command processed |
|
748 |
#unknown - unknown character for this state |
|
749 |
" |
|
750 |
||
751 |
char == $? ifTrue: [ |
|
752 |
state := #gotCSI2. |
|
753 |
^ #waitForNextChar |
|
754 |
]. |
|
755 |
char == $; ifTrue:[ |
|
756 |
currentParam := (currentParam + 1) min: 8. |
|
757 |
^ #waitForNextChar |
|
758 |
]. |
|
759 |
char isDigit ifTrue: [ |
|
760 |
self addToParameter:char. |
|
761 |
^ #waitForNextChar |
|
762 |
]. |
|
4269 | 763 |
|
764 |
TraceCSI == true ifTrue:[ self traceCSI:char ]. |
|
2192 | 765 |
char == $@ ifTrue: [ |
766 |
self endEntry. |
|
767 |
self insertCharacters. |
|
768 |
^ #sequenceComplete |
|
769 |
]. |
|
770 |
char == $A ifTrue: [ |
|
771 |
"/ ESC[#A - Moves cursor up # lines |
|
772 |
self endEntry. |
|
2202 | 773 |
self doCursorUp:(self getParameter:1 withDefault:1). |
2192 | 774 |
^ #sequenceComplete |
775 |
]. |
|
776 |
char == $B ifTrue: [ |
|
777 |
"/ ESC[#B - Moves cursor down # lines |
|
778 |
self endEntry. |
|
2202 | 779 |
self doCursorDown:(self getParameter:1 withDefault:1). |
2192 | 780 |
^ #sequenceComplete |
781 |
]. |
|
782 |
char == $C ifTrue: [ |
|
783 |
"/ ESC[#C - Moves cursor forward # spaces |
|
784 |
self endEntry. |
|
2202 | 785 |
self doCursorRight:(self getParameter:1 withDefault:1). |
2192 | 786 |
^ #sequenceComplete |
787 |
]. |
|
788 |
char == $D ifTrue: [ |
|
789 |
"/ ESC[#D - Moves cursor back # spaces |
|
790 |
self endEntry. |
|
2202 | 791 |
self doCursorLeft:(self getParameter:1 withDefault:1). |
2192 | 792 |
^ #sequenceComplete |
793 |
]. |
|
2202 | 794 |
(char == $H or:[char == $f]) ifTrue: [ |
2192 | 795 |
"/ ESC[#;#H or ESC[#;#f - Moves cusor to line #, column # |
796 |
self endEntry. |
|
2202 | 797 |
self move. |
2192 | 798 |
^ #sequenceComplete |
799 |
]. |
|
800 |
char == $J ifTrue: [ |
|
2217 | 801 |
"/ ESC[0J - Clear screen to end |
802 |
"/ ESC[1J - Clear screen from beginning |
|
2192 | 803 |
"/ ESC[2J - Clear entire screen and home cursor |
804 |
self endEntry. |
|
2207 | 805 |
self doClearDisplay:(self getParameter:1 withDefault:0). |
2192 | 806 |
^ #sequenceComplete |
807 |
]. |
|
808 |
char == $K ifTrue: [ |
|
809 |
"/ ESC[K - Clear to end of line |
|
810 |
self endEntry. |
|
2207 | 811 |
self clearLines:(self getParameter:1 withDefault:0). |
2192 | 812 |
Debug ifTrue:[ |
813 |
Transcript showCR:'clear to EOL'. |
|
814 |
]. |
|
815 |
^ #sequenceComplete |
|
816 |
]. |
|
817 |
char == $L ifTrue: [ |
|
818 |
self endEntry. |
|
819 |
self insertLines. |
|
820 |
^ #sequenceComplete |
|
821 |
]. |
|
822 |
char == $M ifTrue: [ |
|
823 |
self endEntry. |
|
824 |
self deleteLines. |
|
825 |
^ #sequenceComplete |
|
826 |
]. |
|
827 |
char == $P ifTrue: [ |
|
828 |
self endEntry. |
|
829 |
self deleteCharacters. |
|
830 |
^ #sequenceComplete |
|
831 |
]. |
|
2202 | 832 |
char == $R ifTrue: [ |
2192 | 833 |
"/ ESC[#;#R - Reports current cursor line & column |
2207 | 834 |
^ #unknown |
2192 | 835 |
]. |
836 |
(char == $c) ifTrue:[ |
|
837 |
"/ terminal-type query 3 |
|
838 |
self reportTerminalType. |
|
839 |
^ #sequenceComplete |
|
840 |
]. |
|
841 |
char == $n ifTrue: [ |
|
842 |
self report. |
|
843 |
^ #sequenceComplete |
|
844 |
]. |
|
845 |
char == $m ifTrue: [ |
|
2207 | 846 |
self displayMode:(self getParameter:1 withDefault:0). |
2192 | 847 |
^ #sequenceComplete |
848 |
]. |
|
849 |
char == $r ifTrue: [ |
|
850 |
self endEntry. |
|
851 |
self resetDefaults. |
|
852 |
^ #sequenceComplete |
|
853 |
]. |
|
854 |
char == $s ifTrue: [ |
|
855 |
"/ ESC[s - Saves cursor position for recall later |
|
856 |
self endEntry. |
|
857 |
^ #sequenceComplete |
|
858 |
]. |
|
859 |
char == $u ifTrue: [ |
|
860 |
"/ ESC[u - Return to saved cursor position |
|
861 |
self endEntry. |
|
862 |
^ #sequenceComplete |
|
863 |
]. |
|
864 |
^ #unknown |
|
865 |
! |
|
866 |
||
867 |
processStateGotESC:char |
|
868 |
" change state or processing character; return |
|
869 |
#waitForNextChar - state was changed and wait for next characters |
|
870 |
#sequenceComplete - command processed |
|
871 |
#unknown - unknown character for this state |
|
872 |
" |
|
873 |
||
874 |
char == $[ ifTrue: [ |
|
875 |
"/ ESC-[ |
|
876 |
state := #gotCSI. |
|
877 |
^ #waitForNextChar |
|
878 |
]. |
|
879 |
char == $] ifTrue: [ |
|
880 |
"/ ESC-] |
|
881 |
"/xterm sequence |
|
882 |
state := #gotXTERMCSI. |
|
883 |
^ #waitForNextChar |
|
884 |
]. |
|
885 |
char == $( ifTrue: [ |
|
886 |
"/ ESC-( |
|
887 |
"/ todo: set-charset 0 ... |
|
888 |
state := #gotCSI3. |
|
889 |
^ #waitForNextChar |
|
890 |
]. |
|
4269 | 891 |
|
892 |
TraceCSI == true ifTrue:[ self traceCSI:char ]. |
|
2192 | 893 |
char == $) ifTrue: [ |
894 |
"/ ESC-( |
|
895 |
"/ todo: set-charset 1 ... |
|
2207 | 896 |
^ #unknown |
2192 | 897 |
]. |
898 |
char == $7 ifTrue:[ |
|
899 |
"/ ESC-7 |
|
900 |
self endEntry. |
|
901 |
self saveCursor. |
|
902 |
^ #sequenceComplete |
|
903 |
]. |
|
904 |
char == $8 ifTrue:[ |
|
905 |
"/ ESC-7 |
|
906 |
self endEntry. |
|
907 |
self restoreCursor. |
|
908 |
^ #sequenceComplete |
|
909 |
]. |
|
910 |
char == $M ifTrue:[ |
|
2217 | 911 |
"/ ESC-M cursor up |
2192 | 912 |
self endEntry. |
913 |
self doCursorUp:1. |
|
914 |
^ #sequenceComplete |
|
915 |
]. |
|
916 |
char == $D ifTrue:[ |
|
2217 | 917 |
"/ ESC-D Index cursor down one line in same column |
2192 | 918 |
self endEntry. |
919 |
self doCursorDown:1. |
|
920 |
^ #sequenceComplete |
|
921 |
]. |
|
922 |
char == $E ifTrue:[ |
|
923 |
"/ ESC-E |
|
924 |
"/ TODO add_lines |
|
2217 | 925 |
self endEntry. |
926 |
self cursorReturn. |
|
2192 | 927 |
^ #sequenceComplete |
928 |
]. |
|
929 |
(char == $Z) ifTrue:[ |
|
930 |
"/ terminal-type query 2 |
|
931 |
self reportTerminalType. |
|
932 |
^ #sequenceComplete |
|
933 |
]. |
|
934 |
char == $= ifTrue: [ |
|
4291 | 935 |
"/ enter application keypad mode |
2192 | 936 |
"/ ESC-= |
4291 | 937 |
alternateKeypadMode := true. |
938 |
^ #sequenceComplete |
|
2192 | 939 |
]. |
940 |
char == $> ifTrue: [ |
|
4291 | 941 |
"/ exit application keypad mode |
2192 | 942 |
"/ ESC-< |
4291 | 943 |
alternateKeypadMode := false. |
944 |
^ #sequenceComplete |
|
2192 | 945 |
]. |
946 |
^ #unknown |
|
947 |
! |
|
948 |
||
2202 | 949 |
processStateGotReturn:char |
950 |
" change state or processing character; return |
|
951 |
#waitForNextChar - state was changed and wait for next characters |
|
952 |
#sequenceComplete - command processed |
|
953 |
#unknown - unknown character for this state |
|
954 |
" |
|
955 |
||
2207 | 956 |
state := 0. |
2202 | 957 |
char == Character nl ifTrue:[ |
958 |
"/ cr-nl |
|
959 |
"/ stay in buffering mode. |
|
2207 | 960 |
super nextPut:Character cr. |
961 |
^ #sequenceComplete. |
|
2202 | 962 |
]. |
4291 | 963 |
|
2202 | 964 |
self endEntry. |
965 |
self cursorToBeginOfLine. |
|
4286 | 966 |
|
967 |
(char == Character esc) ifTrue:[ |
|
968 |
state := #gotESC. |
|
969 |
]. |
|
2202 | 970 |
"/ continue in initial state |
2207 | 971 |
^ #waitForNextChar |
2202 | 972 |
! |
973 |
||
4221 | 974 |
processStateGotXTERMCSI2:char |
975 |
" change state or processing character; return |
|
976 |
#waitForNextChar - state was changed and wait for next characters |
|
977 |
#sequenceComplete - command processed |
|
978 |
#unknown - unknown character for this state |
|
979 |
" |
|
980 |
||
981 |
char == (Character value:7) ifTrue: [ |
|
4269 | 982 |
TraceCSI == true ifTrue:[ self traceCSI:char ]. |
4221 | 983 |
parameters at:currentParam put:(parameters at:currentParam) contents. |
984 |
self osCommand. |
|
985 |
^ #sequenceComplete |
|
986 |
]. |
|
987 |
"/ add to parameter |
|
988 |
(parameters at:currentParam) nextPut:char. |
|
989 |
^ #waitForNextChar |
|
990 |
! |
|
991 |
||
2192 | 992 |
processStateGotXTERMCSI:char |
993 |
" change state or processing character; return |
|
994 |
#waitForNextChar - state was changed and wait for next characters |
|
995 |
#sequenceComplete - command processed |
|
996 |
#unknown - unknown character for this state |
|
997 |
" |
|
998 |
||
4221 | 999 |
char == $; ifTrue:[ |
1000 |
currentParam := (currentParam + 1) min: 8. |
|
1001 |
parameters at:currentParam put:(WriteStream on:''). |
|
1002 |
state := #gotXTERMCSI2. |
|
1003 |
^ #waitForNextChar |
|
1004 |
]. |
|
4269 | 1005 |
|
4221 | 1006 |
char isDigit ifTrue: [ |
1007 |
self addToParameter:char. |
|
1008 |
^ #waitForNextChar |
|
1009 |
]. |
|
2192 | 1010 |
^ #unknown |
920 | 1011 |
! ! |
1012 |
||
930 | 1013 |
!VT100TerminalView methodsFor:'queries'! |
1014 |
||
2202 | 1015 |
getParameter:para withDefault:default |
1016 |
||
1017 |
|parameter| |
|
1018 |
||
1019 |
parameter := (parameters at:para). |
|
1020 |
^ ((parameter isNil or:[parameter = 0]) ifTrue:[default] ifFalse:[parameter]). |
|
1021 |
! |
|
1022 |
||
930 | 1023 |
terminalType |
1420 | 1024 |
"returns a string describing this terminal (usually, this is |
1025 |
passed down to the shell as TERM environment variable). |
|
1026 |
Here, 'vt100' is returned." |
|
1027 |
||
1355 | 1028 |
^ 'vt100' |
930 | 1029 |
|
1030 |
"Created: / 10.6.1998 / 16:22:39 / cg" |
|
1355 | 1031 |
"Modified: / 5.5.1999 / 11:22:40 / cg" |
930 | 1032 |
! ! |
1033 |
||
920 | 1034 |
!VT100TerminalView class methodsFor:'documentation'! |
1035 |
||
1036 |
version |
|
4291 | 1037 |
^ '$Header: /cvs/stx/stx/libwidg2/VT100TerminalView.st,v 1.52 2013-07-23 14:00:09 cg Exp $' |
4286 | 1038 |
! |
1039 |
||
1040 |
version_CVS |
|
4291 | 1041 |
^ '$Header: /cvs/stx/stx/libwidg2/VT100TerminalView.st,v 1.52 2013-07-23 14:00:09 cg Exp $' |
920 | 1042 |
! ! |
4221 | 1043 |