home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
BASIC
/
PANSI2
/
ANSI.DOC
next >
Wrap
Text File
|
1992-08-27
|
2KB
|
60 lines
This is a document listing VT102/ANSI codes as observed by experiments
with Telemate 3.01. Most codes are also supported in Telix and FD's terminal.
The "#"'s in code represents numbers in ASCII digits, such as "12".
All the codes below are preceded by an Esc (ASCII code 27).
[#;#H Position cursor on screen
[#A Cursor Up
[#B Cursor Down
[#C Cursor Forward
[#D Cursor Backward
[#E Repeat a CRLF
[#F Repeat a reverse CRLF (upwards)
[s Save Cursor Position
[u Restore Cursor Position
[0K or [K Erase Line
[1K Deletes current cursor position to beginning of line
[2K Deletes current line containing cursor
[0J or [J Erase from cursor to end of screen
[1J Erase from beginning of screen to cursor
[2J Erase Display
[6n Device Status Report
[#;#R Cursor Position Report
[#@ Insert spaces and pushes text at right towards right
[#P Delete characters and pull text at right towards left
[#L Insert lines and pushes text below down
[#M Deletes lines and pulls text below up (or ANSI music prefix code)
[4h Insert mode on
[4l Insert mode off
E Unconditial equivalent of CR and LF (Regardless of CR-LF setting)
D Linefeed (Screen scroll if at bottom)
M Reverse Linefeed (Screen scroll if at top)
[#;#; ...etc... ;#m
All the "#"'s are the numbers below. For example,
"[0m" turns all attributes off, and "[0;5;31m" resets
the attributes, turns on bold, and sets the foreground
color to red.
0 All Attributes off, set color to non-bold white
1 Bold on
5 Blink on
7 Reverse video on
8 Concealed on
30 Black foreground
31 Red foreground
32 Green foreground
33 Yellow foreground
34 Blue foreground
35 Magenta foreground
36 Cyan foreground
37 White foreground
40 Black background
41 Red background
42 Green background
43 Yellow background
44 Blue background
45 Magenta background
46 Cyan background
47 White background