Category : Recently Uploaded Files
Archive   : SIMPLE3.ZIP
Filename : ANSI.DOC

 
Output of file : ANSI.DOC contained in archive : SIMPLE3.ZIP


A good list of ANSI escape sequences!




----- CURSOR POSITIONING COMMANDS

Cursor Locate: [#;#H

The first number specifies the row to go
to, and the second specifies the column.
If both numbers are left out, the cursor
goes to the home position.

Cursor Up: [#A

The number specifies the number of rows.
If the number is omitted, the cursor is
moved up by only one row.

Cursor Down: [#B

The number specifies the number of rows.
If the number is absent, the cursor moves
down by only one row.

Cursor Foward: [#C

The number specifies how many columns to
advacne, but will not go past column 80.
If the number is left out, the cursor
advances by one column.

Cursor Backward: [#D

The number indicates how many columns to
go backward, but will not wrap around
before column 1. If the number is
omitted, the cursor moves one column.

Cursor Save: [s

This causes the current row and column to
be saved in memory.

Cursor Restore: [u

This locates the cursor at the position
it was when the most recent Cursor Save
command was used.



(Continues)



----- CLEAR DISPLAY COMMANDS

Clear Screen: [2J

This command clears the entire screen,
and places the cursor at Row 1, Column 1.

Clear Line: [k

This causes the current line to be
cleared from the current cursor position
to the end. The character at the cursor
position is also cleared.



(Continues)



----- GRAPHICS AND COLOR COMMANDS

Set Colors: [#m or [#;#m or [#;#;#m

The number of parameters may vary, and
their meaning is as follows:

0 restore colors to white on black
1 high intensity
4 underscore on (monochrome only)
5 blink on
7 inverse video on
8 invisible on
30 Black foreground
31 Red foreground
32 Green foreground

33 Yellow foreground
34 Blue foreground
35 Magenta foreground
36 Cyan foreground
37 White foreground
40 Black backround
41 Red backround
42 Green backround
43 Yellow backround
44 Blue backround
45 Magenta backround
46 Cyan backround
47 White backround



(Continues)


----- MODE SETTING COMMANDS

Set screen mode: [=#h

The number indicates which video mode is
to be activated, using these choices:

0 40 x 25 black & white text
1 40 x 25 color text
2 80 x 25 black & white text
3 80 x 25 color text
4 320 x 200 color graphics
5 320 x 200 black & white graphics
6 640 x 200 black & white graphics
7 cause character wrap at end of line

Reset screen mode: [#I

Same as Set mode commands, except that
parameter 7 disables character wrap,
causing any characters that continue
beyond the end of the line to be ignored.



(Continues)


----- RE-ASSIGNING THE KEYBOARD COMMANDS

The general form of this command is:

[#;#p
Where the first number indicates which
key is being re-assigned, and the second
indicates what it is to be replaced with.
Both numbers are specified using their
ASCII codes.

Replace a single key with a string of characters:

[#;"Your message here"p


Both string literals and ASCII code numbers may be freely
intermixed, for example to include a carriage return:

[#;"Another silly message";13p


Extended keys are represented by two numbers--the first is
always 0, and the second is the key's scan code:

[0;68;"F10 types this message"p




This file brought to you by The Original.
Copied from the March 10, 1987 issue of PC Magazine



  3 Responses to “Category : Recently Uploaded Files
Archive   : SIMPLE3.ZIP
Filename : ANSI.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/