UKNC Control characters +-----+----+-----------------------------+-----+----+-------------------------------------+ | dec | hex| Action | dec | hex| Action | +-----+----+-----------------------------+-----+----+-------------------------------------+ | 0 | 00 | | 16 | 10 | (Reset tab stop) | | 1 | 01 | | 17 | 11 | (Initial cursor setting) | | 2 | 02 | | 18 | 12 | Scroll display up | | 3 | 03 | Interupt | 19 | 13 | Scroll line right | | 4 | 04 | | 20 | 14 | Scroll line left | | 5 | 05 | | 21 | 15 | Newline | | 6 | 06 | | 22 | 16 | Scroll display up | | 7 | 07 | Bell | 23 | 17 | (Slide in line?) | | 8 | 08 | Cursor left or home | 24 | 18 | (Delete character to right) | | 9 | 09 | Cursor right to tab stop | 25 | 19 | Cursor right --+ | | 10 | 0A | Cursor down | 26 | 1A | Cursor left | | | 11 | 0B | | 27 | 1B | Escape | | | 12 | 0C | CLS | 28 | 1C | Cursor Up | Arrow keys | | 13 | 0D | Carriage return | 29 | 1D | Cursor Down | | | 14 | 0E | Cyrillic characters | 30 | 1E | | | | 15 | 0F | Latin characters | 31 | 1F | --+ | +-----+----+-----------------------------+-----+----+-------------------------------------+ | dec | hex| Action | dec | hex| Action | +-----+----+-----------------------------+-----+----+-------------------------------------+ | 128 | 80 | | 144 | 90 | Line-by-line program execution | | 129 | 81 | (Repeat?) | 145 | 91 | (red) --+ Entered from the | | 130 | 82 | Switch display mode of | 146 | 92 | (green) | keyboard by pressing | | | | control characters | | | | the "AP2", "lower case"| | 131 | 83 | | 147 | 93 | (blue) | and and "1", "2", "3" | | 132 | 84 | Switch blocking mode of | 148 | 94 | (black) --+ or "4" keys | | | | editing codes | 149 | 95 | Switch graphic mode (GRAPH mode) | | 133 | 85 | | 150 | 96 | Switch mode of recording points on | | 134 | 86 | | | | the screen in the "GRAPH" mode | | 135 | 87 | | 151 | 97 | Switch point erase mode in "GRAPH" mode | | 136 | 88 | | 152 | 98 | Switch line edit mode | | 137 | 89 ¦ Horizontal tab | 153 | 99 | Delete right from cursor | | 138 | 8A | | 154 | 9A | Switch display mode cursor | | 139 | 8B | | 155 | 9B | Switch 32/64 character in the string| | 140 | 8C ¦ Switch extended memory mode | 156 | 9C | Switch inversion mode characters | | | | (press AP2 and SBR keys) | 157 | 9D | Switch inversion mode screen | | 141 | 8D | | 158 | 9E | Installation in the service line | | 142 | 8E | | | | current screen modes | | 143 | 8F | | 159 | 9F | Turn on underline mode | +-----+----+-----------------------------+-----+----+-------------------------------------+ UKNC CSI Escape Sequences +-------+--------------------------------+------+-----------------------------------------+ ¦ ESC | Action | ESC | Action | +-------+--------------------------------+------+-----------------------------------------+ | 27,%,n| Special control | | | | 27,< | (VT100=Enter/Exit VT52 mode) | | | | 27,= | Cyrillic keyboard (DKP displayed) | | | 27,> | Latin keyboard (DKP removed) | | | | | | | | | 27,@ | | 27,P | | | 27,A | Cursor up | 27,Q | | | 27,B | Cursor down | 27,R | | | 27,C | Cursor right | 27,S | | | 27,D | Cursor left | 27,T | | | 27,E | CHR$8 becomes HOME | 27,U | | | 27,F | (VT52=special graphics) | 27,V | | | 27,G | (VT52=latin character set) | 27,W | | | 27,H | Cursor Home to (0,0) | 27,X | | | 27,I | Cursor up | 27,Y,32+Y,32+X | Cursor to (X,Y) | | 27,J | Clear to end of screen | 27,Z | (VT52=Identify terminal) | | 27,K | (VT52=Clear to end of line) | 27,[ | VDU output disappears except CLS, NEWL | | 27,L | (VT52=Insert line) | 27,\ | | | 27,M | (VT52=Delete line) | 27,] | | | 27,N | (VT100=Single Shift 2) | 27,^ | | | 27,O | (VT100=Single Shift 3) | 27,_ | | +-------+--------------------------------+------+-----------------------------------------+ Colour control 27,"%!0",27,"LI@@f@@b@@s",27,"%!3" | | | 'P'+foreground---+ | | 'P'+background------+ | 'P'+scroll-------------+ Uses BGR numbers: black,blue,green,cyan,red,magenta,yellow,white eg 27,"%!0",27,"LI@@P@@W@@T",27,"%!3" - black text, white background, red scroll/clear