Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Request: ANSI-Code Table

0 views
Skip to first unread message

Vi Nham

unread,
Dec 1, 1995, 3:00:00 AM12/1/95
to

Hi everyone,

I am currently looking for a list of ANSI commands code.
Does anyone know where I can get a list of ANSI code?

Thanks in advance for any information,

Regards,
Vi

(vn...@socs.uts.EDU.AU)

Joey

unread,
Dec 3, 1995, 3:00:00 AM12/3/95
to

vn...@socs.uts.EDU.AU (Vi Nham) wrote:
| Hi everyone,
|
| I am currently looking for a list of ANSI commands code.
| Does anyone know where I can get a list of ANSI code?
|
| Thanks in advance for any information,

They should be listed in your DOS Manual but here you go! :)

Note: ESC = ASCII #27, the left pointing arrow character

.--------------------- ANSI.SYS Quick Reference Guide
---------------------.
| Display Attributes Set Display Modes Cursor Control |
|----------------------------------------------------------------------------|
| ESC[1;2;3;4;5;6;7;8m | ESC[=<mode>H | ESC[<rows>A Up J|
| | | ESC[<rows>B Down H|
| 0 White on Black | 0 25x40 BW | ESC[<rows>C Right W|
| 1 High intensity | 1 25x40 Color | ESC[<rows>D Left |
| 2 Underscore (mda) | 2 25x80 BW | ESC[<r;c>H Move 1|
| 5 Blink on | 3 25x80 Color | ESC[s Save 9|
| 7 Reverse Video | 4 200x320 Clr Gfx | ESC[u Restore 9|
| 8 Screen off | 5 200x320 BW Gfx | ESC[2J CLS 1|
|--------------------------| 6 200x640 B&W Gfx | ESC[K Clear line |
| Foreground Background |----------------------|--------------------------|
|--------------------------| ESC[=7l Line Wrap OFF| Keyboard Re-assignment |
| 30 Black 40 Black | ESC[=7h Line Wrap ON |--------------------------|
| 31 Red 41 Red |----------------------| ESC[<code>;<result>p |
| 32 Green 42 Green | If you ever have the | |
| 33 Brown 43 Brown | problem where ANSI | Code/result may be ASC |
| 34 Blue 44 Blue | is displayed at row | or scankey value. Result |
| 35 Magenta 45 Magenta | 1 column 80 until it | may be characters within |
| 36 Cyan 46 Cyan | is done, use WordWrap| quotes for words to echo |
| 37 White 47 White | ON command above. | when key is pressed. |
------------------------------------------------------------------------------

Joey

[ A Day Without Ansi Is Like Mono. ]


0 new messages