Subversion Repositories Kolibri OS

Rev

Rev 8582 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8582 Rev 9105
Line 77... Line 77...
77
		44 = blue background
77
		44 = blue background
78
		45 = magenta background
78
		45 = magenta background
79
		46 = cyan background
79
		46 = cyan background
80
		47 = white background
80
		47 = white background
81
	The following sequences appeared in version 5 of library:
81
	The following sequences appeared in version 5 of library:
82
	Esc[2J - clear screen, move cursor to upper left corner
-
 
83
	Esc[;H = Esc[;f -
-
 
84
		move cursor to ,
-
 
85
	Esc[A - move cursor to  lines up
82
	Esc[A - move cursor to  lines up
86
	Esc[B - move cursor to  lines down
83
	Esc[B - move cursor to  lines down
87
	Esc[C - move cursor to  positions right
84
	Esc[C - move cursor to  positions right
88
	Esc[D - move cursor to  positions left
85
	Esc[D - move cursor to  positions left
-
 
86
	Esc[;H = Esc[;f -
-
 
87
		move cursor to ,	
-
 
88
	Esc[2J - clear screen, move cursor to upper left corner		
-
 
89
	The following sequences appeared in version 9 of library:	
-
 
90
	Esc[J or Esc[0J - Erase everything below cursor
-
 
91
	Esc[1J - Erase everything above cursor	
-
 
92
	Esc[K - Erase in line
-
 
93
	Esc[L - Insert  lines at the cursor position
-
 
94
	Esc[M - Delete  lines at the cursor position
-
 
95
	Esc[P - Delete 
-
 
96
	Esc[X - Erase 
-
 
97
	Esc[d - Set cursor to absolute line position
-
 
98
	Esc[;f - Cursor position
-
 
99
	Esc[h - Set mode (see below)
-
 
100
	Esc[l - Reset mode (see below)
-
 
101
	The following modes are currently supported:
-
 
102
		?1 - Application cursor keys
-
 
103
		?25 - Show/Hide cursor
-
 
104
		?1049 - Alternative screen buffer. The alternative buffer has no scrollback.
-
 
105
	Esc[;r - Set scroll region from row  to row 
-
 
106
		(Use in combination with insert/delete lines)
-
 
107
	Esc]0ST/BEL - Set window caption. The string is terminated with ASCII char 0x07 or 0x9C.
-
 
108
	Esc]2ST/BEL - Implemented identical as Esc]0.
89
*/
109
*/
90
/* signal "console closed"; appeared in version 6;
110
/* signal "console closed"; appeared in version 6;
91
	ignored by con_set_flags */
111
	ignored by con_set_flags */
92
#define CON_WINDOW_CLOSED 0x200
112
#define CON_WINDOW_CLOSED 0x200
93
The default value for flags = 7. (grey text on black background)
113
The default value for flags = 7. (grey text on black background)
Line 158... Line 178...
158
void __stdcall con_set_cursor_pos(int x, int y);
178
void __stdcall con_set_cursor_pos(int x, int y);
159
Set the cursor position to the specified coordinates. If any of the
179
Set the cursor position to the specified coordinates. If any of the
160
parameters beyond the relevant range (from 0 to 1 scr_width-
180
parameters beyond the relevant range (from 0 to 1 scr_width-
161
for x, from 0 to 1 for scr_height-y, scr_width scr_height and were asked if
181
for x, from 0 to 1 for scr_height-y, scr_width scr_height and were asked if
162
call con_init), then the corresponding coordinate of the cursor does not change.
182
call con_init), then the corresponding coordinate of the cursor does not change.
-
 
183
 
-
 
184
int __stdcall con_get_input(char* buf, int buflen);
-
 
185
Read as many input events as are available and fit in the receive buffer.
-
 
186
Input event can be regular ASCII code from keyboard, but also escape codes for special keys.
-
 
187
The support for mouse events via escape codes is not yet implemented.
163
188