home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / ANSISYS.TXT < prev    next >
Text File  |  1997-07-05  |  11KB  |  231 lines

  1. +++Date last modified: 05-Jul-1997
  2.  
  3.  
  4.                         ANSI.SYS's Escape Sequences File.
  5.  
  6.  
  7.  
  8.         WARNING: You must press the ESC key, the [, the number wanted,
  9.                  then the tiny M key.
  10.  
  11.                                  Graphics functions:
  12.  
  13.            0 : All Attributes Off
  14.            1 : Bold On
  15.            4 : Underscore (Monochrome Display Only)
  16.            5 : Blink On
  17.            7 : Reverse Video On
  18.            8 : Concealed On
  19.  
  20.           That's all for the Graphics Functions existing in ANSI.SYS.
  21.  
  22.                                  Foreground colors:
  23.  
  24.                 30 : Black                             34 : Blue
  25.                 31 : Red                               35 : Magenta
  26.                 32 : Green                             36 : Cyan
  27.                 33 : Yellow                            37 : White
  28.  
  29.                                  Background colors:
  30.  
  31.                 40 : Black                             44 : Blue
  32.                 41 : Red                               45 : Magenta
  33.                 42 : Green                             46 : Cyan
  34.                 43 : Yellow                            47 : White
  35.  
  36.                   ( Background is finally the Foreground + 10 )
  37.  
  38.                                  --------------------
  39.  
  40.        Code     Description
  41.     ----------------------------------------------------------------------
  42.         Pn   :   Numeric Parameter - a Decimal Number that you Specify
  43.                  with ASCII digits.
  44.  
  45.         Ps   :   Selective Parameter - a Decimal Number that you use to
  46.                  select a Subfunction. You may specify More than One Sub-
  47.                  function by separating the parameters with semicolons.
  48.  
  49.         Pl   :   Line Parameter - a Decimal Number that you Specify with
  50.                  ASCII digits.
  51.  
  52.         Pc   :   Column Parameter - a Decimal Number that you Specify
  53.                  with ASCII digits.
  54.  
  55.                                    ------------------
  56.  
  57.         Don't Forget! All theses sequences are precede by the ESC key.
  58.  
  59.                                    ------------------
  60.         Sequence   Function
  61.     ----------------------------------------------------------------------
  62.         [Pl;Pc H : Cursor Position (CUP)
  63.  
  64.         [Pl;Pc F : Horizontal & Vertical Position (HVP).
  65.                    CUP and HVP move the cursor to the position specified
  66.                    by the parameters. When no parameters are provided,
  67.                    the cursor move to the home position (the upper-left
  68.                    corner of the screen).
  69.  
  70.         [Pn A    : Cursor Up (CUU)
  71.                    This sequence moves the cursor up Pn lines without
  72.                    changing columns. If the cursor is Already on the Top
  73.                    line, then it ignores the CUU sequence.
  74.  
  75.         [Pn B    : Cursor Down (CUD)
  76.                    This sequence moves the cursor down Pn lines without
  77.                    changing columns. If the cursor is already on the
  78.                    bottom line, then it ignores the CUD sequence.
  79.  
  80.         [Pn C    : Cursor Forward (CUF)
  81.                    The CUF sequence moves the cursor forward Pn columns
  82.                    without changing lines. If the cursor is already in 
  83.                    the far right column, then it ignores the CUF sequence.
  84.  
  85.         [Pn D    : Cursor Backward (CUB)
  86.                    This escape sequence moves the cursor back Pn columns
  87.                    without changing lines. If the cursor is already in
  88.                    the far left column, then it ignores the CUB sequence.
  89.  
  90.         [6n      : Device Status Report (DSR)
  91.                    The console driver outputs an RCP sequence when it
  92.                    receives the DSR escape sequence.
  93.  
  94.         [s       : Save Cursor Position (SCP)
  95.                    The console driver saves the current cursor position.
  96.                    This position can be restored with the RCP sequence.
  97.  
  98.         [u       : Restore Cursor Position (RCP)
  99.                    This sequence restores the cursor position to the
  100.                    value it had when the console driver received the
  101.                    SCP sequence.
  102.  
  103.         [2j      : Erase Display (ED)
  104.                    The ED sequence erases the screen. The cursor then
  105.                    goes to the home position.
  106.  
  107.         [K       : Erase Line (EL)
  108.                    This sequences erases from the cursor to the end of
  109.                    the line (including cursor position).
  110.  
  111.   [Ps; ... ; Ps m: Set Graphics Rendition (SGR)
  112.                    The SGR escape sequence calls the graphic functions
  113.                    specified by the following numeric parameters. These
  114.                    functions remain until the next occurrence of an SGR
  115.                    escape sequence.
  116.  
  117.         [=Ps h     Set mode (SM)
  118.         [=h        The SM escape sequence changes the screen width or
  119.         [=0h       type to one of the following numeric parameters:
  120.  
  121.                  Screen Width Parameters
  122.             ----------------------------------
  123.             0  : 40 x 25 B&W
  124.             1  : 40 x 25 color
  125.             2  : 80 x 25 B&W
  126.             3  : 80 x 25 color
  127.             4  : 320 x 200 color
  128.             5  : 320 x 200 B&W
  129.             6  : 640 x 200 B&W
  130.             7  : Wraps at the end of Each line
  131.             14 : 640 x 200 color
  132.             15 : 640 x 350 mono
  133.             16 : 640 x 350 color
  134.             17 : 640 x 480 color
  135.             18 : 640 x 480 color (both 17-18 are good)
  136.             19 : 320 x 200 color
  137.             ------------------------------------
  138.  
  139.         [= Ps 1  : Reset mode (RM)
  140.                    Parameters for RM are the same as for SM (Set Mode)
  141.                    except parameter 7 resets the mode that causes
  142.                    wrapping at the end of each line.
  143.  
  144.  [code;string;...p: Allows redefinition of keyboard keys to a specified
  145.                     string where:
  146.                     'string' is either the ASCII code for a single
  147.                     character or a string contained in quotation marks.
  148.                     For example, both 65 and "A" can be used to
  149.                     represent an uppercase. 'code' is one or more
  150.                     of the following values that represent keyboard
  151.                     keys. Semicolons shown in this table must be
  152.                     entered in addition to the required semicolons
  153.                     in the command line.
  154.  
  155.          Key                     Code
  156.    -----------------------------------------------------------------------
  157.                    Alone     Shift-   Ctrl-     Alt-
  158.    -----------------------------------------------------------------------
  159.           F1        0;59      0;84     0;94    0;104
  160.           F2        0;60      0;85     0;95    0;105
  161.           F3        0;61      0;86     0;96    0;106
  162.           F4        0;62      0;87     0;97    0;107
  163.           F5        0;63      0;88     0;98    0;108
  164.           F6        0;64      0;89     0;90    0;109
  165.           F7        0;65      0;90    0;100    0;110
  166.           F8        0;66      0;91    0;101    0;111
  167.           F9        0;67      0;92    0;102    0;112
  168.           F10       0;68      0;93    0;103    0;113
  169.           F11       0;133     0;135   0;137    0;139
  170.           F12       0;134     0;136   0;138    0;140
  171.          Home       0;71      55      0;119    -----
  172.       Up Arrow      0;72      56      -----    -----
  173.       Page Up       0;73      57      0;132    -----
  174.      Left Arrow     0;75      52      0;115    -----
  175.     Right Arrow     0;77      54      0;116    -----
  176.      Down Arrow     0;80      53      -----    -----
  177.           End       0;79      49      0;117    -----
  178.      Page Down      0;81      51      0;118    -----
  179.         Insert      0;82      48      -----    -----
  180.         Delete      0;83      46      -----    -----
  181.     Printscreen     -----     -----   0;114    -----
  182.  
  183.             ------------------------------------------
  184.             and for the keyboard's alphabetical keys:
  185.             ------------------------------------------
  186.  
  187.          Key                     Code
  188.    ----------------------------------------------------------------------
  189.                    Alone     Shift-   Ctrl-     Alt-
  190.    ----------------------------------------------------------------------
  191.           A         97        65       1        0;30
  192.           B         98        66       2        0;48
  193.           C         99        67       3        0;46
  194.           D         100       68       4        0;32
  195.           E         101       69       5        0;18
  196.           F         102       70       6        0;33
  197.           G         103       71       7        0;34
  198.           H         104       72       8        0;35
  199.           I         105       73       9        0;23
  200.           J         106       74      10        0;36
  201.           K         107       75      11        0;37
  202.           L         108       76      12        0;38
  203.           M         109       77      13        0;50
  204.           N         110       78      14        0;49
  205.           O         111       79      15        0;24
  206.           P         112       80      16        0;25
  207.           Q         113       81      17        0;16
  208.           R         114       82      18        0;19
  209.           S         115       83      19        0;31
  210.           T         116       84      20        0;20
  211.           U         117       85      21        0;22
  212.           V         118       86      22        0;47
  213.           W         119       87      23        0;17
  214.           X         120       88      24        0;45
  215.           Y         121       89      25        0;21
  216.           Z         122       90      26        0;44
  217.           1         49        33      -----     0;120
  218.           2         50        64      -----     0;121
  219.           3         51        35      -----     0;122
  220.           4         52        36      -----     0;123
  221.           5         53        37      -----     0;124
  222.           6         54        94      -----     0;126
  223.           7         55        38      -----     0;127
  224.           8         56        42      -----     0;128
  225.           9         57        40      -----     0;129
  226.           0         48        41      -----     0;130
  227.           .         45        95      -----     0;131
  228.           =         61        43      -----     -----
  229.           TAB       9         0;15    -----     -----
  230.           NULL      0;3       -----   -----     -----
  231.