home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / CYahoo / ansi1.txt < prev    next >
Text File  |  2000-03-31  |  13KB  |  387 lines

  1.  
  2.  
  3.                                   ANSI.SYS
  4.  
  5. Defines functions that change display graphics, control cursor movement, and
  6. reassign keys. The ANSI.SYS device driver supports ANSI terminal emulation
  7. of escape sequences to control your system's screen and keyboard. An ANSI
  8. escape sequence is a sequence of ASCII characters, the first two of which
  9. are the escape character (1Bh) and the left-bracket character (5Bh). The
  10. character or characters following the escape and left-bracket characters
  11. specify an alphanumeric code that controls a keyboard or display function.
  12. ANSI escape sequences distinguish between uppercase and lowercase letters;
  13. for example,"A" and "a" have completely different meanings.
  14.  
  15. This device driver must be loaded by a < DEVICE > or < DEVICEHIGH > command in
  16. your CONFIG.SYS file.
  17.  
  18. Note:  In this topic bold letters in syntax and ANSI escape sequences
  19.        indicate text you must type exactly as it appears.
  20.  
  21. Syntax
  22.  
  23.     DEVICE=[drive:][path]ANSI.SYS [/X] [/K] [/R]
  24.  
  25. Parameter
  26.  
  27. [drive:][path]
  28.    Specifies the location of the ANSI.SYS file.
  29.  
  30. Switches
  31.  
  32. /X
  33.     Remaps extended keys independently on 101-key keyboards.
  34.  
  35. /K
  36.     Causes ANSI.SYS to treat a 101-key keyboard like an 84-key
  37.     keyboard. This is equivalent to the command SWITCHES=/K.
  38.     If you usually use the SWITCHES=/K command, you will need
  39.     to use the /K switch with ANSI.SYS.
  40.  
  41. /R
  42.      Adjusts line scrolling to improve readability when ANSI.SYS
  43.      is used with screen-reading programs (which make computers
  44.      more accessible to people with disabilities).
  45.  
  46. Parameters used in ANSI escape sequences
  47.  
  48. Pn
  49.     Numeric parameter. Specifies a decimal number.
  50.  
  51. Ps
  52.     Selective parameter. Specifies a decimal number that you use to select
  53.     a function. You can specify more than one function by separating the
  54.     parameters with semicolons.
  55.  
  56. PL
  57.     Line parameter. Specifies a decimal number that represents one of the
  58.     lines on your display or on another device.
  59.  
  60. Pc
  61.     Column parameter. Specifies a decimal number that represents one of the
  62.     columns on your screen or on another device.
  63.  
  64. ANSI escape sequences for cursor movement, graphics, and keyboard settings
  65.  
  66. In the following list of ANSI escape sequences, the abbreviation ESC
  67. represents the ASCII escape character 27 (1Bh), which appears at the
  68. beginning of each escape sequence.
  69.  
  70. ESC[PL;PcH
  71.     Cursor Position: Moves the cursor to the specified position
  72.     (coordinates). If you do not specify a position, the cursor moves to the
  73.     home positionÄÄthe upper-left corner of the screen (line 0, column
  74.     0). This escape sequence works the same way as the following Cursor
  75.     Position escape sequence.
  76.  
  77. ESC[PL;Pcf
  78.     Cursor Position: Works the same way as the preceding Cursor Position
  79.     escape sequence.
  80.  
  81. ESC[PnA
  82.     Cursor Up: Moves the cursor up by the specified number of lines without
  83.     changing columns. If the cursor is already on the top line, ANSI.SYS
  84.     ignores this sequence.
  85.  
  86. ESC[PnB
  87.     Cursor Down: Moves the cursor down by the specified number of lines
  88.     without changing columns. If the cursor is already on the bottom line,
  89.     ANSI.SYS ignores this sequence.
  90.  
  91. ESC[PnC
  92.     Cursor Forward: Moves the cursor forward by the specified number of
  93.     columns without changing lines. If the cursor is already in the
  94.     rightmost column, ANSI.SYS ignores this sequence.
  95.  
  96. ESC[PnD
  97.     Cursor Backward: Moves the cursor back by the specified number of
  98.     columns without changing lines. If the cursor is already in the leftmost
  99.     column, ANSI.SYS ignores this sequence.
  100.  
  101. ESC[s
  102.     Save Cursor Position: Saves the current cursor position. You can move
  103.     the cursor to the saved cursor position by using the Restore Cursor
  104.     Position sequence.
  105.  
  106. ESC[u
  107.     Restore Cursor Position: Returns the cursor to the position stored
  108.     by the Save Cursor Position sequence.
  109.  
  110. ESC[2J
  111.     Erase Display: Clears the screen and moves the cursor to the home
  112.     position (line 0, column 0).
  113.  
  114. ESC[K
  115.     Erase Line: Clears all characters from the cursor position to the
  116.     end of the line (including the character at the cursor position).
  117.  
  118. ESC[Ps;...;Psm
  119.     Set Graphics Mode: Calls the graphics functions specified by the
  120.     following values. These specified functions remain active until the next
  121.     occurrence of this escape sequence. Graphics mode changes the colors and
  122.     attributes of text (such as bold and underline) displayed on the
  123.     screen.
  124.  
  125.     Text attributes
  126.        0    All attributes off
  127.        1    Bold on
  128.        4    Underscore (on monochrome display adapter only)
  129.        5    Blink on
  130.        7    Reverse video on
  131.        8    Concealed on
  132.  
  133.     Foreground colors
  134.        30    Black
  135.        31    Red
  136.        32    Green
  137.        33    Yellow
  138.        34    Blue
  139.        35    Magenta
  140.        36    Cyan
  141.        37    White
  142.  
  143.     Background colors
  144.        40    Black
  145.        41    Red
  146.        42    Green
  147.        43    Yellow
  148.        44    Blue
  149.        45    Magenta
  150.        46    Cyan
  151.        47    White
  152.  
  153.     Parameters 30 through 47 meet the ISO 6429 standard.
  154.  
  155. ESC[=psh
  156.     Set Mode: Changes the screen width or type to the mode specified
  157.     by one of the following values:
  158.  
  159.        0      40 x 148 x 25 monochrome (text)
  160.        1      40 x 148 x 25 color (text)
  161.        2      80 x 148 x 25 monochrome (text)
  162.        3      80 x 148 x 25 color (text)
  163.        4      320 x 148 x 200 4-color (graphics)
  164.        5      320 x 148 x 200 monochrome (graphics)
  165.        6      640 x 148 x 200 monochrome (graphics)
  166.        7      Enables line wrapping
  167.       13      320 x 148 x 200 color (graphics)
  168.       14      640 x 148 x 200 color (16-color graphics)
  169.       15      640 x 148 x 350 monochrome (2-color graphics)
  170.       16      640 x 148 x 350 color (16-color graphics)
  171.       17      640 x 148 x 480 monochrome (2-color graphics)
  172.       18      640 x 148 x 480 color (16-color graphics)
  173.       19      320 x 148 x 200 color (256-color graphics)
  174.  
  175. ESC[=Psl
  176.     Reset Mode: Resets the mode by using the same values that Set Mode
  177.     uses, except for 7, which disables line wrapping. The last character
  178.     in this escape sequence is a lowercase L.
  179.  
  180. ESC[code;string;...p
  181.     Set Keyboard Strings: Redefines a keyboard key to a specified string.
  182.     The parameters for this escape sequence are defined as follows:
  183.  
  184.       Code is one or more of the values listed in the following table.
  185.        These values represent keyboard keys and key combinations. When using
  186.        these values in a command, you must type the semicolons shown in this
  187.        table in addition to the semicolons required by the escape sequence.
  188.        The codes in parentheses are not available on some keyboards.
  189.        ANSI.SYS will not interpret the codes in parentheses for those
  190.        keyboards unless you specify the /X switch in the DEVICE command for
  191.        ANSI.SYS.
  192.  
  193.       String is either the ASCII code for a single character or a string
  194.        contained in quotation marks. For example, both 65 and "A" can be
  195.        used to represent an uppercase A.
  196.  
  197. IMPORTANT:  Some of the values in the following table are not valid for all
  198.             computers. Check your computer's documentation for values that
  199.             are different.
  200.  
  201. Key                       Code      SHIFT+code  CTRL+code  ALT+code
  202. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
  203.  
  204. F1                        0;59      0;84        0;94       0;104
  205.  
  206. F2                        0;60      0;85        0;95       0;105
  207.  
  208. F3                        0;61      0;86        0;96       0;106
  209.  
  210. F4                        0;62      0;87        0;97       0;107
  211.  
  212. F5                        0;63      0;88        0;98       0;108
  213.  
  214. F6                        0;64      0;89        0;99       0;109
  215.  
  216. F7                        0;65      0;90        0;100      0;110
  217.  
  218. F8                        0;66      0;91        0;101      0;111
  219.  
  220. F9                        0;67      0;92        0;102      0;112
  221.  
  222. F10                       0;68      0;93        0;103      0;113
  223.  
  224. F11                       0;133     0;135       0;137      0;139
  225.  
  226. F12                       0;134     0;136       0;138      0;140
  227.  
  228. HOME (num keypad)         0;71      55          0;119      ÄÄ
  229.  
  230. UP ARROW (num keypad)     0;72      56          (0;141)    ÄÄ
  231.  
  232. PAGE UP (num keypad)      0;73      57          0;132      ÄÄ
  233.  
  234. LEFT ARROW (num keypad)   0;75      52          0;115      ÄÄ
  235.  
  236. RIGHT ARROW (num          0;77      54          0;116      ÄÄ
  237. keypad)
  238.  
  239. END (num keypad)          0;79      49          0;117      ÄÄ
  240.  
  241. DOWN ARROW (num keypad)   0;80      50          (0;145)    ÄÄ
  242.  
  243. PAGE DOWN (num keypad)    0;81      51          0;118      ÄÄ
  244.  
  245. INSERT (num keypad)       0;82      48          (0;146)    ÄÄ
  246.  
  247. DELETE  (num keypad)      0;83      46          (0;147)    ÄÄ
  248.  
  249. HOME                      (224;71)  (224;71)    (224;119)  (224;151)
  250.  
  251. UP ARROW                  (224;72)  (224;72)    (224;141)  (224;152)
  252.  
  253. PAGE UP                   (224;73)  (224;73)    (224;132)  (224;153)
  254.  
  255. LEFT ARROW                (224;75)  (224;75)    (224;115)  (224;155)
  256.  
  257. RIGHT ARROW               (224;77)  (224;77)    (224;116)  (224;157)
  258.  
  259. END                       (224;79)  (224;79)    (224;117)  (224;159)
  260.  
  261. DOWN ARROW                (224;80)  (224;80)    (224;145)  (224;154)
  262.  
  263. PAGE DOWN                 (224;81)  (224;81)    (224;118)  (224;161)
  264.  
  265. INSERT                    (224;82)  (224;82)    (224;146)  (224;162)
  266.  
  267. DELETE                    (224;83)  (224;83)    (224;147)  (224;163)
  268.  
  269. PRINT SCREEN              ÄÄ        ÄÄ          0;114      ÄÄ
  270.  
  271. PAUSE/BREAK               ÄÄ        ÄÄ          0;0        ÄÄ
  272.  
  273. BACKSPACE                 8         8           127        (0)
  274.  
  275. ENTER                     13        ÄÄ          10         (0
  276.  
  277. TAB                       9         0;15        (0;148)    (0;165)
  278.  
  279. NULL                      0;3       ÄÄ          ÄÄ         ÄÄ
  280.  
  281. A                         97        65          1          0;30
  282.  
  283. B                         98        66          2          0;48
  284.  
  285. C                         99        66          3          0;46
  286.  
  287. D                         100       68          4          0;32
  288.  
  289. E                         101       69          5          0;18
  290.  
  291. F                         102       70          6          0;33
  292.  
  293. G                         103       71          7          0;34
  294.  
  295. H                         104       72          8          0;35
  296.  
  297. I                         105       73          9          0;23
  298.  
  299. J                         106       74          10         0;36
  300.  
  301. K                         107       75          11         0;37
  302.  
  303. L                         108       76          12         0;38
  304.  
  305. M                         109       77          13         0;50
  306.  
  307. N                         110       78          14         0;49
  308.  
  309. O                         111       79          15         0;24
  310.  
  311. P                         112       80          16         0;25
  312.  
  313. Q                         113       81          17         0;16
  314.  
  315. R                         114       82          18         0;19
  316.  
  317. S                         115       83          19         0;31
  318.  
  319. T                         116       84          20         0;20
  320.  
  321. U                         117       85          21         0;22
  322.  
  323. V                         118       86          22         0;47
  324.  
  325. W                         119       87          23         0;17
  326.  
  327. X                         120       88          24         0;45
  328.  
  329. Y                         121       89          25         0;21
  330.  
  331. Z                         122       90          26         0;44
  332.  
  333. 1                         49        33          ÄÄ         0;120
  334.  
  335. 2                         50        64          0          0;121
  336.  
  337. 3                         51        35          ÄÄ         0;122
  338.  
  339. 4                         52        36          ÄÄ         0;123
  340.  
  341. 5                         53        37          ÄÄ         0;124
  342.  
  343. 6                         54        94          30         0;125
  344.  
  345. 7                         55        38          ÄÄ         0;126
  346.  
  347. 8                         56        42          ÄÄ         0;126
  348.  
  349. 9                         57        40          ÄÄ         0;127
  350.  
  351. 0                         48        41          ÄÄ         0;129
  352.  
  353. -                         45        95          31         0;130
  354.  
  355. =                         61        43          ÄÄ-        0;131
  356.  
  357. [                         91        123         27         0;26
  358.  
  359. ]                         93        125         29         0;27
  360.  
  361.                           92        124         28         0;43
  362.  
  363. ;                         59        58          ÄÄ         0;39
  364.  
  365. '                         39        34          ÄÄ         0;40
  366.  
  367. ,                         44        60          ÄÄ         0;51
  368.  
  369. .                         46        62          ÄÄ         0;52
  370.  
  371. /                         47        63          ÄÄ         0;53
  372.  
  373. `                         96        126         ÄÄ         (0;41)
  374.  
  375. ENTER (keypad)            13        ÄÄ          10         (0;166)
  376.  
  377. / (keypad)                47        47          (0;142)    (0;74)
  378.  
  379. * (keypad)                42        (0;144)     (0;78)     ÄÄ
  380.  
  381. - (keypad)                45        45          (0;149)    (0;164)
  382.  
  383. + (keypad)                43        43          (0;150)    (0;55)
  384.  
  385. 5 (keypad)                (0;76)    53          (0;143)    ÄÄ
  386.  
  387.