home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / BASIC / PANSI2 / ANSI.DOC next >
Text File  |  1992-08-27  |  2KB  |  60 lines

  1. This is a document listing VT102/ANSI codes as observed by experiments
  2. with Telemate 3.01. Most codes are also supported in Telix and FD's terminal.
  3.  
  4. The "#"'s in code represents numbers in ASCII digits, such as "12".
  5. All the codes below are preceded by an Esc (ASCII code 27).
  6.  
  7. [#;#H        Position cursor on screen
  8. [#A          Cursor Up
  9. [#B          Cursor Down
  10. [#C          Cursor Forward
  11. [#D          Cursor Backward
  12. [#E          Repeat a CRLF
  13. [#F          Repeat a reverse CRLF (upwards)
  14. [s           Save Cursor Position
  15. [u           Restore Cursor Position
  16. [0K or [K    Erase Line
  17. [1K          Deletes current cursor position to beginning of line
  18. [2K          Deletes current line containing cursor
  19. [0J or [J    Erase from cursor to end of screen
  20. [1J          Erase from beginning of screen to cursor
  21. [2J          Erase Display
  22. [6n          Device Status Report
  23. [#;#R        Cursor Position Report
  24. [#@          Insert spaces and pushes text at right towards right
  25. [#P          Delete characters and pull text at right towards left
  26. [#L          Insert lines and pushes text below down
  27. [#M          Deletes lines and pulls text below up (or ANSI music prefix code)
  28. [4h          Insert mode on
  29. [4l          Insert mode off
  30. E            Unconditial equivalent of CR and LF (Regardless of CR-LF setting)
  31. D            Linefeed (Screen scroll if at bottom)
  32. M            Reverse Linefeed (Screen scroll if at top)
  33.  
  34. [#;#;  ...etc... ;#m
  35.              All the "#"'s are the numbers below. For example, 
  36.              "[0m" turns all attributes off, and "[0;5;31m" resets
  37.              the attributes, turns on bold, and sets the foreground 
  38.              color to red.
  39.              0    All Attributes off, set color to non-bold white
  40.              1    Bold on
  41.              5    Blink on
  42.              7    Reverse video on
  43.              8    Concealed on
  44.              30   Black foreground
  45.              31   Red foreground
  46.              32   Green foreground
  47.              33   Yellow foreground
  48.              34   Blue foreground
  49.              35   Magenta foreground
  50.              36   Cyan foreground
  51.              37   White foreground
  52.              40   Black background
  53.              41   Red background
  54.              42   Green background
  55.              43   Yellow background
  56.              44   Blue background
  57.              45   Magenta background
  58.              46   Cyan background
  59.              47   White background
  60.