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[ |
- | |
84 | move cursor to |
- | |
85 | Esc[ |
82 | Esc[ |
86 | Esc[ |
83 | Esc[ |
87 | Esc[ |
84 | Esc[ |
88 | Esc[ |
85 | Esc[ |
- | 86 | Esc[ |
|
- | 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[ |
|
- | 94 | Esc[ |
|
- | 95 | Esc[ |
|
- | 96 | Esc[ |
|
- | 97 | Esc[ |
|
- | 98 | Esc[ |
|
- | 99 | Esc[ |
|
- | 100 | Esc[ |
|
- | 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[ |
|
- | 106 | (Use in combination with insert/delete lines) |
|
- | 107 | Esc]0 |
|
- | 108 | Esc]2 |
|
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 |