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