
          ANSI codes that COM: responds to.
  [ ]  -  contains optional parts of the command.

  'n' and 'm'  -  always a decimal number, having one or more ASCII
                      digits to express its value.
  
  Where there is '[n]' and 'n' is not used, it usually defaults to '1'.

Backspace                                          08
Line Feed   (down one line)                        0A
Up (up one line)                                   0B
Form Feed  (clear screen)                          0C
Carriage Return (move to first column)             0D
Shift in (turn off 'Shift out')                    0E
Shift out (set MSB of each char before displaying) 0F                 
<CSI> (Control sequence introducer)                1B 5B or 9B
Reset                                              1B 63
Insert n characters                                <CSI> [n] 40
Cursor up n lines                                  <CSI> [n] 41
Cursor down n lines                                <CSI> [n] 42
Cursor forward n lines                             <CSI> [n] 43
Cursor backward n lines                            <CSI> [n] 44
Cursor down n lines and to column 1                <CSI> [n] 45
Cursor up n lines and to column 1                  <CSI> [n] 46
Cursor to row n column m                           <CSI> [n] [3B m] 48
Erase to end of display                            <CSI> 4A
Erase to end of line                               <CSI> 4B
Insert line above current line                     <CSI> 4C
Delete current line                                <CSI> 4D
Delete n chars from under cursor forward           <CSI> [n] 50
Scroll display up n lines                          <CSI> [n] 53
Scroll display down n lines                        <CSI> [n] 54
Set mode (line feed -> line feed + carrage return) <CSI> 32 30 68
Reset mode (line feed -> line feed)                <CSI> 32 30 6C
Select graphic rendition                           <CSI> s 3B 33 f 3B 34 b 6D
 
   Where:  's' (style)   =  30  : plain text
                            31  : Bold-face
                            33  : Italic
                            34  : Underscore
                            37  : Inverse-video

   'f' (text color) and 'b' (background color)   =  
              30  : System color 0      34  : System color 4            
              31  : System color 1      35  : System color 5  
              32  : System color 2      36  : system color 6
              33  : System color 3      37  : system color 7
                                          


                    Denne tekst er til farve synkronicering
                       Stil dine farver paa din software  
                                  Sadan her:

   Tekstfarver:
                        [30m ESC Kode 30[0m Sort
                        [31m ESC Kode 31[0m R0d
                        [32m ESC Kode 32[0m Gr0n
                        [33m ESC Kode 33[0m Gul
                        [34m ESC Kode 34[0m Blaa
                        [35m ESC Kode 35[0m Lilla
                        [36m ESC Kode 36[0m Tyrkis (Cyan) 
                        [37m ESC Kode 37[0m Hvid
   Baggrunds farver:
                        [40m ESC Kode 40[0m Sort
                        [41m ESC Kode 41[0m R0d
                        [42m ESC Kode 42[0m Gr0n
                        [43m ESC Kode 43[0m Gul
                        [44m ESC Kode 44[0m Blaa
                        [45m ESC Kode 45[0m Lilla
                        [46m ESC Kode 46[0m Tyrkis (Cyan)
                        [47m ESC Kode 47[0m Hvid

         Brug en ansi terminal der kan tage alle farverne f.eks Access
            Aegis Diga kan for eksempel ikke vise mere end 4 farver


The text below, describes all the ANSI-controlcodes.

                           # = Numeric value
                         ESC = Escape char. (27D = 1BH)




                ESC[#;#H        Moves the cursor to the position
                                specified by the parameters.


                ESC[#A          Moves cursor UP one line, without changing
                                column.


                ESC[#B          Moves cursor DOWN one line, without
                                changing column.


                ESC[#C          Moves the cursor FORWARD one column,
                                without changing line.


                ESC[#D          Moves the cursor BACK one column,
                                without changing line.


                ESC[#;#f        Moves the cursor to the position,
                                specified by the parameters.
                                This function is the same as ESC[#;#H.


                ESC[6n          The console driver will output a
                                Cursor Position Report (CPR).


                ESC[#;#R        Reports current cursor position
                                through the standard input device.


                ESC[s           Save cursor position.


                ESC[u           Restore cursor position.


                ESC[2J          Erases all of screen and the cursor
                                goes to the home position.


                ESC[K           Erases from the cursor to the end of the
                                line. inc. cursor position.





ANSI.TXT



                                    COLOURS
                                    -------



                ESC[#;...;#m



                Parameters:
                -----------


                                0       All attributes off

                                1       Bold on (high intensity)

                                4       Underscore on (monochrome disp)

                                5       Blink on

                                7       Reverse video on

                                8       Cancelled on (invisible)

                                30      Black foreground

                                31      Red foreground

                                32      Green foreground

                                33      Yellow foreground

                                34      Blue foreground

                                35      Magneta foreground

                                36      Cyan foreground

                                37      White foreground

                                40      Black background

                                41      Red background

                                42      Green background

                                43      Yellow background

                                44      Blue background

                                45      Magneta background

                                46      Cyan background

                                47      White background


