Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Expert Help On-Line Manual v1.30 - <b>ansi.sys</b> ansi.sys commands http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ANSI.SYS                 ANSI.SYS Commands

 Cursor Control

 Locate cursor:                    ESC [l;cH
 (l=Line,c=Column)

 Move cursor: (# is number of position to move)

 Up:                               ESC [#A
 Down:                             ESC [#B
 Forward:                          ESC [#C
 Backward:                         ESC [#D
 Read current position:            ESC [6n
 (report on the form: ESC[l;cR)
 Store cursor position:            ESC [s
 Recall cursor position:           ESC [u

 Display Control

 Clear screen and home cursor:     ESC [2J
 Erase to end of line:             ESC [k
 Set display rendition:            ESC [#;....;#m

 Where # represents the following:

 0      all off  white on black
 1      bold(high intensity) on
 4      underscore on  (monochrome only)
 5      blink on
 7      inverse video on
 8      canceled on (invisible)
 30     foreground black
 31     foreground red
 32     foreground green
 33     foreground yellow
 34     foreground blue
 35     foreground magenta
 36     foreground cyan
 37     foreground white
 40     background black
 41     background red
 42     background green
 44     background yellow
 44     background blue
 45     background magenta
 46     background cyan
 47     background white

 Set video mode:                   ESC [?#h

 Where # represents the following:

 0      40x25   black & white
 1      40x25   color
 2      80x25   black & white
 3      80x25   color
 4      320x200 color
 5      320x200 black & white
 6      640x200 black & white
 7      wrap at end of line

 Redefine Keyboard

 The sequence ESC [#;....#p allows a key to be redefined.

 The first # represents the ascii code of the key to be redefined. If you
 want to define a key with an extended keycode, such as F1, just replace
 the first # with a 0, and give the extended ascii code as the second #.

 The following # is the ascii values for the redefinition.

 Example:

 Redefine Ctrl-D as "DIR"+enter:

 ESC[4;"DIR";13;p





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson