home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / ICTARI04.ARJ / ictari.04 / MISC / VT_52 / VT_52.TXT
Text File  |  1992-10-30  |  7KB  |  176 lines

  1.                         CONOUT Escape Sequences
  2.       
  3.       These are the escape  functions  interpreted  by  the  BIOS'
  4.       conout()  function.   For the most part they emulate a VT-52
  5.       terminal.  There are extensions to  hack screen colors, con-
  6.       trol screen wrap, and a few other simple functions.
  7.       
  8.       ESC A
  9.       Cursor Up
  10.            This sequence moves the cursor up  one  line.   If  the
  11.            cursor  is  already on the top line of the screen, this
  12.            sequence has no effect.
  13.       
  14.       ESC B
  15.       Cursor Down
  16.            This moves the cursor down one line.  If the cursor  is
  17.            already  on  the  last  line of the screen, this escape
  18.            sequence has no effect.
  19.       
  20.       ESC C
  21.       Cursor Forward
  22.            This moves the cursor one position to  the  right.   If
  23.            this  function  would  move  the cursor off the screen,
  24.            this sequence has no effect.
  25.       
  26.       ESC D
  27.       Cursor Backward
  28.            This move the cursor one position to the left.  This is
  29.            a  non-  destructive  move  because  the character over
  30.            which the cursor now rests is not replaced by a  blank.
  31.            If  the  cursor  is  already  in  column O, this escape
  32.            sequence has no effect.
  33.       
  34.       ESC E
  35.       Clear Screen (and Home Cursor)
  36.            This moves the cursor to  column  O,  row  I  (the  top
  37.            left-hand corner of the screen), and clears all charac-
  38.            ters from the screen.
  39.       
  40.       ESC H
  41.       Home Cursor
  42.            This move the cursor to column O, row O.  The screen is
  43.            NOT cleared.
  44.       
  45.       ESC I
  46.       Reverse Index
  47.            Moves the cursor to the same horizontal position on the
  48.            preceding  lines.   If the cursor is on the top line, a
  49.            scroll down is performed.
  50.       
  51.       ESC J
  52.       Erase to End of Page
  53.            Erases all the information from cursor (including  cur-
  54.            sor position) to the end of the page.
  55.       
  56.       ESC K
  57.       Clear to End of Line
  58.            This sequence clears the line from the  current  cursor
  59.            position to the end of the line.
  60.       
  61.       ESC L
  62.       Insert Line
  63.            Inserts a new blank line by moving the line that cursor
  64.            is  on,  end all following lines, down one line.  Then,
  65.            the cursor is moved to the beginning of the  new  blank
  66.            line.
  67.       
  68.       ESC M
  69.       Delete Line
  70.            Deletes the contents of the line that the cursor is on,
  71.            places  the  cursor at the beginning of the line, moves
  72.            all the following lines up one line, and adds  a  blank
  73.            line at the bottom.
  74.       
  75.       ESC Y
  76.       Position Cursor
  77.            The two characters that follow the "Y" specify the  row
  78.            and  column  to  which  the cursor is to be moved.  The
  79.            first character specifies the row, the second specifies
  80.            the colum.  Rows and columns number from 1 up.
  81.       
  82.       ESC b
  83.       Set Foreground Color
  84.            The Foreground Color is the color in which the  charac-
  85.            ter is displayed.
  86.       
  87.            Escape-b must be followed by a color selection  charac-
  88.            ter.  Only the four least significant bits of the color
  89.            character are used:
  90.       
  91.            Bit Pattern of Control Byte:
  92.       
  93.                   7     6     5     4     3     2     1     0
  94.                +-----+-----+-----+-----+-----+-----+-----+-----+
  95.                |     |     |     |     |                       |
  96.                |  X  |  X  |  X  |  X  |    color index        |
  97.                |     |     |     |     |                       |
  98.                +-----+-----+-----+-----+-----+-----+-----+-----+
  99.                (X = "don't care")
  100.       
  101.       ESC c
  102.       Set Background Color
  103.            This function selects Background Color,  the  color  of
  104.            the cell that contains the characters.
  105.       
  106.            Escape-c must be followed by a color selection  charac-
  107.            ter.  Only the four least significant bits of the color
  108.            character are used.  (See diagram for ESC-b function)
  109.       
  110.       ESC d
  111.       Erase Beginning of Display
  112.            This sequence erases from beginning of the  display  to
  113.            the  cursor  position.   The  cursor position is erased
  114.            also.
  115.       
  116.       ESC e
  117.       Enable Cursor
  118.            This sequence causes the cursor to be  invisible.   The
  119.            cursor  may  still be moved about on the display, using
  120.            escape sequence defined in this appendix.
  121.       
  122.       ESC f
  123.       Disable Cursor
  124.            This sequence causes the cursor to be  invisible.   The
  125.            cursor  may  still be moved about on the display, using
  126.            escape sequences defined in this appendix.
  127.       
  128.       ESC j
  129.       Save Cursor Position
  130.            This sequence preserves the  current  cursor  position.
  131.            You  can  restore  the  cursor  to the previously saved
  132.            position with ESC-k.
  133.       
  134.       ESC k
  135.       Restore Cursor Position
  136.            This sequence restores the cursor to a previously saved
  137.            position.  If you use this sequence without having pre-
  138.            viously saved the cursor position, then the  cursor  is
  139.            moved to the home position, the top left-hand corner of
  140.            the screen.
  141.       
  142.       ESC l
  143.       Erase Entire Line
  144.            This sequence erases an entire line and moves the  cur-
  145.            sor to the leftmost column.
  146.       
  147.       ESC o
  148.       Erase Beginning of Line
  149.            Erases from the beginning of the line to the cursor and
  150.            includes the cursor position.
  151.       
  152.       ESC p
  153.       Enter Reverse Video Mode
  154.            Enters the reverse video mode so  that  characters  are
  155.            displayed  as  background  color  characters on a fore-
  156.            ground colored cell.
  157.       
  158.       ESC q
  159.       Exit Reverse Video Mode
  160.            Exits the reverse video mode.
  161.       
  162.       ESC v
  163.       Wrap at End of Line
  164.            This sequence causes the first character past the  last
  165.            displayable  position  on  a  line  to be automatically
  166.            placed in the first  character  position  on  the  next
  167.            line.  The page scrolls up if necessary.
  168.       
  169.       ESC w
  170.       Discard at End of Line
  171.            Following invocation of this sequence, after  the  last
  172.            displayable  character  on a line has been reached, the
  173.            characters overprint.  Therefore, only the last charac-
  174.            ter received is displayed in the last column position.
  175.  
  176.