sobol@udcps3.cps.udayton.edu (Steven Sobol) (04/07/90)
OKAY... I looked for the file I had that listed all the VT-220 (and therefore
VT-100) control sequences, but I don't remember where it is... so here are some
of the VT-220 codes, including "color" codes. These are the ones that I
remember offhand...
ESC [#,#,#...#m Change video attributes: # equals...
0 : Normal; cancel any attributes that are set.
*1 : Underline.
*4 : Bright.
*5 : Flashing bright/normal or normal/dark.
7 : Reverse video.
* : only appears on a VT-220 or VT-100 with Advanced Video Option.
ESC [1m produces either underlining or reverse video based on how
setup switch 1-4 (1-4? I think 1-4) is set.
Also: PF1 thru PF4 send ESC OP through ESC OS
UP and DOWN send ESC [A and ESC [B
LEFT/RIGHT send ESC [D and ESC [C
Keypad 0-9 send ESC [Op through ESC [Oy
Keypad , sends ESC [Ol
Keypad ENTER sends ESC [OM
Keypad - sends ESC [Om
Keypad . sends ESC [On
ESC [x;yH moves cursor
ESC [J clears screen ([0J beg of scrn > C; [1J C > end of scrn; [2J whole sc)
ESC [K clears line ([0K beg of line > C; [1K C > end of line; [2K whole ln)
(C is current position)
I'm going to continue searching for that file and will post it if I find it...
--
STEVE SOBOL <SOBOL@UDCPS2.CPS.UDAYTON.EDU> | <STEVEN.SOBOL@AFITAMY.FIDONET.ORG>
UUCP:!UUNET!DAYVB!{UDCPS3|AFITAMY}!SOBOL | 318 Founders Hall, Dayton OH 45469
procedure Standard-Flame: writeln ("People like you make me wanna PUKE!");
"But Soft- What Yonder Light I See? Tis the Computer Lab. Juliet's at the Sun"