Files
SyncHome/trunk/workspace/C_CPP/conio.txt
2023-03-13 08:36:51 +00:00

225 lines
5.0 KiB
Plaintext

http://wiki.amigaos.net/wiki/AmigaOS_Manual:_AmigaDOS_Advanced_Features
Escc Clears the window and resets all modes to defaults.
Esc[0m Resets graphics modes to defaults.
Esc[1m Turns on text boldface.
Esc[3m Turns on text italic.
Esc[4m Turns on text underlining.
Esc[7m Turns on reverse video text.
Esc[8m Makes text match background color.
Esc[22m Turns off boldface.
Esc[23m Turns off italics.
Esc[24m Turns off underlining.
Esc[27m Turns off reverse video.
Esc[28m Returns the text color to normal.
Esc[30m Turns on text color0 (background, default grey).
Esc[31m Turns on text color1 (shadow, default black).
Esc[32m Turns on text color2 (shine, default white).
Esc[33m Turns on text color3 (accent, default blue).
Esc[3#m Turns on text color# (4-7).
Esc[39m Turns on text default color (color1).
Esc[40m Turns on text background color0 (default grey).
Esc[41m Turns on text background color1 (default black).
Esc[42m Turns on text background color2 (default white).
Esc[43, Turns on text background color3 (default blue).
Esc[4#m Turns on text background color# (4-7).
Esc[49m Turns on default text background color (color0).
Esc[#u Sets maximum length of lines in window to #.
Esc[#t Sets maximum number of lines in window to #.
Esc[#x Starts text # pixels from left edge of window.
Esc[#y Starts text # pixels from top edge of window.
http://ascii-table.com/ansi-escape-sequences.php
Esc[Line;ColumnH
Esc[Line;Columnf
Cursor Position:
Moves the cursor to the specified position (coordinates).
If you do not specify a position, the cursor moves to the home position at the upper-left corner of the screen (line 0, column 0). This escape sequence works the same way as the following Cursor Position escape sequence.
Esc[ValueA
Cursor Up:
Moves the cursor up by the specified number of lines without changing columns. If the cursor is already on the top line, ANSI.SYS ignores this sequence.
Esc[ValueB
Cursor Down:
Moves the cursor down by the specified number of lines without changing columns. If the cursor is already on the bottom line, ANSI.SYS ignores this sequence.
Esc[ValueC
Cursor Forward:
Moves the cursor forward by the specified number of columns without changing lines. If the cursor is already in the rightmost column, ANSI.SYS ignores this sequence.
Esc[ValueD
Cursor Backward:
Moves the cursor back by the specified number of columns without changing lines. If the cursor is already in the leftmost column, ANSI.SYS ignores this sequence.
Esc[s
Save Cursor Position:
Saves the current cursor position. You can move the cursor to the saved cursor position by using the Restore Cursor Position sequence.
Esc[u
Restore Cursor Position:
Returns the cursor to the position stored by the Save Cursor Position sequence.
Esc[2J
Erase Display:
Clears the screen and moves the cursor to the home position (line 0, column 0).
Esc[K
Erase Line:
Clears all characters from the cursor position to the end of the line (including the character at the cursor position).
Esc[Value;...;Valuem
Set Graphics Mode:
Calls the graphics functions specified by the following values. These specified functions remain active until the next occurrence of this escape sequence. Graphics mode changes the colors and attributes of text (such as bold and underline) displayed on the screen.
Text attributes
0
All attributes off
1
Bold on
4
Underscore (on monochrome display adapter only)
5
Blink on
7
Reverse video on
8
Concealed on
Foreground colors
30
Black
31
Red
32
Green
33
Yellow
34
Blue
35
Magenta
36
Cyan
37
White
Background colors
40
Black
41
Red
42
Green
43
Yellow
44
Blue
45
Magenta
46
Cyan
47
White
Parameters 30 through 47 meet the ISO 6429 standard.
Esc[=Valueh
Set Mode:
Changes the screen width or type to the mode specified by one of the following values:
Screen resolution
0
40 x 25 monochrome (text)
1
40 x 25 color (text)
2
80 x 25 monochrome (text)
3
80 x 25 color (text)
4
320 x 200 4-color (graphics)
5
320 x 200 monochrome (graphics)
6
640 x 200 monochrome (graphics)
7
Enables line wrapping
13
320 x 200 color (graphics)
14
640 x 200 color (16-color graphics)
15
640 x 350 monochrome (2-color graphics)
16
640 x 350 color (16-color graphics)
17
640 x 480 monochrome (2-color graphics)
18
640 x 480 color (16-color graphics)
19
320 x 200 color (256-color graphics)
Esc[=Valuel
Reset Mode:
Resets the mode by using the same values that Set Mode uses, except for 7, which disables line wrapping
(the last character in this escape sequence is a lowercase L).
Esc[Code;String;...p
Set Keyboard Strings:
http://conio.sourceforge.net/docs/html/conio2_8h.html