home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
ESC154.ZIP
/
KEYCHART.TXT
< prev
next >
Wrap
Text File
|
1992-08-23
|
30KB
|
370 lines
╔════════════════Ansi Screen Attribute and Ascii Key Chart═══════Contents══════╗
║ ║
║ Nothing fabulous here. Just a set of quick reference charts to help you ║
║ along when you need to know that ansi code sequence which can make your ║
║ display sparkle. Or, when you need to know what sequence of key presses ║
║ it takes to make that unique looking inverted question mark ¿ appear on ║
║ the screen or in your text file. Formatted nicely to display with LIST. ║
║ ║
║ ║
║ The first five screens show you how, by example, to change your video ║
║ attributes by using an Ansi type screen driver, such as ANSI.SYS .. ║
║ ║
║ The sixth screen reveals the Extended Ansi codes such as the Function, ║
║ Shift, Control and Alt keypress combinations. ║
║ ║
║ The remaining pages show the decimal, hex values as well as the ascii ║
║ (displayed) symbol and the keypress(es) required to produce the 0 - 255 ║
║ characters. ║
║ ║
║ A few characters such as the line feed ^M, TAB and BackSpace could not ║
║ be displayed for obvious reasons. They're invisible anyway.. ║
║ ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════════Ansi Code Screen Attributes═════════════screen 1══════╗
║ Ansi.sys or an equivalent MUST be memory resident for any example to work! ║
║ ║
║ 0 all off 1 high intensity ║
║ 4 underscore (no color) 5 video blink ║
║ 7 inverse video 8 concealed (no display) ║
║ ║
║ 30 black foreground 40 black background ║
║ 31 red " 41 red " ║
║ 32 green " 42 green " ║
║ 33 yellow " 43 yellow " ║
║ 34 blue " 44 blue " ║
║ 35 magenta " 45 magenta " ║
║ 36 cyan " 46 cyan " ║
║ 37 white " 47 white " ║
║ ║
║ Example 1 echo
blinkin' yellow
║
║ Example 2 prompt $e[5;33m $p$g ║
║ ║
║ Example 1) produces a blinking yellow rectangle between m and the esc () ║
║ character. The text will remain its orignal color with no ║
║ blinking. ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════════════════════════════════════════════════screen 2══════╗
║ Example 2) causes all subsequent Dos line screen output to be in blinking ║
║ yellow. The $p$g causes the dos prompt to be in the format of ║
║ drive, path and delimeter. Such as C:\UTILS>. Otherwise, no ║
║ prompt will appear before the cursor. ║
║ The m establishes the prior code as a screen attribute sequence. ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ Ansi Display Mode Setting Commands ║
║ 0 40x25 black and white 1 40x25 color ║
║ 2 80x25 " " " 3 80x25 " ║
║ 5 320x200 " " " 4 320x200 " ║
║ 6 640x200 " " " 7 End of Line wrap ON ║
║ ║
║ Example 1 echo =1h ║
║ Example 2 prompt $e[=4h $p$g ║
║ Example 3 prompt $e[=7l $p$g ║
║ ║
║ Example 1) issued from a text or batch file sets the screen mode to ║
║ 40x25 black and white. ║
║ Example 2) From the Dos prompt, sets the screen mode at 320x200 color. ║
║ with the Dos prompt line format as drive, path and delimeter ║
║ such as C:\UTILS> . ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════════════════════════════════════════════════screen 3══════╗
║ Example 3) Resets the screen mode to End of Line wrap off. ║
║ The prompt line format is established as drive, ║
║ path and delimeter such as C:\UTILS> . ║
║ This feature is disabled in some screen modes, such as mode 1. ║
║ ║
║ Example 3a) prompt $e[=7h $p$g ║
║ Turns the End of Line wrap back on after $e[=7l $p$g ║
╟──────────────────────────────────────────────────────────────────────────────╢
║ Ansi Keyboard Reassignment control codes ║
║ Example 1 echo 87;104;97;116;63;32p ║
║ Example 2 prompt $e[63;72;117;104;33p $p$g ║
║ Example 3 prompt $e[100;100;105;114;13p $p$g ║
║ Example 4 echo ;"chkdsk"13p ║
║ Example 5 prompt $e[96;"chkdsk d:";13p $p$g ║
║ Example 6 echo 9;"type ";p ║
║ Example 7 prompt $e[0;68;"print ";p $p$g ║
║ Example 1) Executed from a batch file, assigns "What? " to the ? mark ║
║ key. Each time ? is pressed "What ?" (without quotes) will be ║
║ printed to the screen on the command line. Normally this will ║
║ produce an error message if ENTER is pressed. However, some ║
║ applications may be able to use such special key signatures. ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════════════════════════════════════════════════screen 4══════╗
║ Example 2) Assigns a special meaning to the ? key from the Dos prompt ║
║ command line and also assigns the drive, path and > to the ║
║ prompt command. ║
║ Example 3) Assigns (from the Dos prompt) "dir" to the d key and performs ║
║ a carriage return (13). As soon as d is pressed. The current ║
║ drivepath and > are displayed at each Dos command prompt. ║
║ Example 4) Executed from a batch file. Assigns "chkdsk" with a carriage ║
║ return to the ~ key. An immediate request for chkdsk on the ║
║ current drive is performed if chkdsk can be found. Also ║
║ reassigns the drive, path and > as a dos prompt delimeter. ║
║ Example 5) Is the same as 4 except (if available) chkdsk will operate ║
║ on drive d:. ║
║ Example 6 Assigns "type " to F1 without the quotes, from a batch file. ║
║ Example 7 Does the same as example 6, except the ansi command is ║
║ issued from the Dos prompt. Assigns "print " to the F10 key ║
║ and reassigns the drive, path and > delimeter to the prompt. ║
║ ║
║ You may notice that either the Ascii decimal code or the alphanumeric ║
║ representative in quotations is acceptable for key reassignment. ║
║ FUNCTION keys must be preceded by 0; and their Ascii decimal code ║
║ ranges from 59 to 68 (F1 - F10). ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════Ansi Screen and Cursor Control Codes════════screen 5══════╗
║ #;#H cursor screen position (row,column) #;#f Same Command ║
║ ║
║ #A Moves cursor UP # of lines holding column position ║
║ ║
║ #B " " Down # of " " " " ║
║ ║
║ #C " " # of columns to the right on current row ║
║ ║
║ #D " " # of " on " left on " " ║
║ ║
║ s Saves in memory current cursor position for recall later. ║
║ u Restores cursor to s position. ║
║ 6n issue cursor position report to I/O device ║
║ #;#R reports row,column report in response to I/O device status report ║
║ ║
║ 2J Clear entire screen and homes cursor at row 0 column 0 (top left) ║
║ K Erases current row from the cursor position to row end (right). ║
║ ║
║ Sample 1: "at the Dos prompt" C:\> prompt $e[12;30H ║
║ Places the cursor on line 12 and column 30 ║
║ Sample 2: "from a batch file" echo 30H ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔════════════════════════Extended Ascii Code (F1 - F10)══════════screen 6══════╗
║ ║
║ F1 0,59 Ctrl-F1 0,94 ║
║ F2 0,60 Ctrl-F2 0,95 ║
║ F3 0,61 Ctrl-F3 0,96 ║
║ F4 0,62 Ctrl-F4 0,97 ║
║ F5 0,63 Ctrl-F5 0,98 ║
║ F6 0,64 Ctrl-F6 0,99 ║
║ F7 0,65 Ctrl-F7 0,100 ║
║ F8 0,66 Ctrl-F8 0,101 ║
║ F9 0,67 Ctrl-F9 0,102 ║
║ F10 0,68 Ctrl-F10 0,103 ║
║ Shift-F1 0,84 Alt-F 0,104 ║
║ Shift-F2 0,85 Alt-F 0,105 ║
║ Shift-F3 0,86 Alt-F 0,106 ║
║ Shift-F4 0,87 Alt-F 0,107 ║
║ Shift-F5 0,88 Alt-F 0,108 ║
║ Shift-F6 0,89 Alt-F 0,109 ║
║ Shift-F7 0,90 Alt-F 0,110 ║
║ Shift-F8 0,91 Alt-F 0,111 ║
║ Shift-F9 0,92 Alt-F 0,112 ║
║ Shift-F10 0,93 Alt-F 0,112 ║
╚═══════════════════════════════════════════════════════════════════════gkg════╝
╔═════════════════════════════════════════════════════════════════════════════╗
╟───────────────────────────EXTENDED KEYBOARD CODES─────────────────────────1─╢
║ KEY DEC HEX KEY DEC HEX KEY DEC HEX ║
╟─────────────────────────────────────────────────────────────────────────────╢
║ ALT-A 00 30 00 1E ALT-S 00 31 00 1F ALT-` 00 41 00 29 ║
║ ALT-B 00 48 00 30 ALT-T 00 20 00 14 ALT-- 00 130 00 82 ║
║ ALT-C 00 46 00 2E ALT-U 00 22 00 16 ALT-= 00 131 00 83 ║
║ ALT-D 00 32 00 20 ALT-V 00 47 00 2F ALT-\ 00 43 00 2B ║
║ ALT-E 00 18 00 12 ALT-W 00 17 00 11 ALT-[ 00 26 00 1A ║
║ ALT-F 00 33 00 21 ALT-X 00 45 00 2D ALT-] 00 27 00 AB ║
║ ALT-G 00 34 00 22 ALT-Y 00 21 00 15 ALT-; 00 39 00 27 ║
║ ALT-H 00 35 00 23 ALT-Z 00 44 00 2C ALT-' 00 40 00 28 ║
║ ALT-I 00 23 00 17 ALT-1 00 120 00 78 ALT-, 00 51 00 33 ║
║ ALT-J 00 36 00 24 ALT-2 00 121 00 79 ALT-. 00 52 00 34 ║
║ ALT-K 00 37 00 25 ALT-3 00 122 00 7A ALT-/ 00 53 00 35 ║
║ ALT-L 00 38 00 26 ALT-4 00 123 00 7B ALT-ESC 00 01 00 01 ║
║ ALT-M 00 50 00 32 ALT-5 00 124 00 7C ALT-TAB 00 165 00 A5 ║
║ ALT-N 00 49 00 31 ALT-6 00 125 00 7D ALT-INS 00 162 00 A2 ║
║ ALT-O 00 24 00 18 ALT-7 00 126 00 7E ALT-DEL 00 163 00 A3 ║
║ ALT-P 00 25 00 19 ALT-8 00 127 00 7F ALT-HOM 00 151 00 97 ║
║ ALT-Q 00 16 00 10 ALT-9 00 128 00 80 ALT-END 00 159 00 9F ║
║ ALT-R 00 19 00 13 ALT-0 00 129 00 81 ║
╚═══════════════════════════════════════════════════════════════════════kd════╝
╔═════════════════════════════════════════════════════════════════════════════╗
╟───────────────────────────EXTENDED KEYBOARD CODES─────────────────────────2─╢
║ KEY DEC HEX KEY DEC HEX KEY DEC HEX ║
╟─────────────────────────────────────────────────────────────────────────────╢
║ ALT-PGUP 00 153 00 99 CTRL-TAB 00 148 00 94 SHFT-TAB 00 15 00 0F ║
║ ALT-PGDN 00 161 00 A1 CTRL-INS 00 146 00 92 INS 00 82 00 52 ║
║ ALT-CRUP 00 152 00 98 CTRL-DEL 00 147 00 93 DEL 00 83 00 53 ║
║ ALT-CRDN 00 160 00 A0 CTRL-HOM 00 119 00 77 HOM 00 71 00 47 ║
║ ALT-CRLF 00 155 00 9B CTRL-END 00 117 00 75 END 00 79 00 4F ║
║ ALT-CRRT 00 157 00 9D CTRL-PGUP 00 132 00 84 PGUP 00 73 00 49 ║
║ NUMERIC KEYPAD CTRL-PGDN 00 118 00 76 PGDN 00 81 00 51 ║
║ ALT-/ 00 164 00 A4 CTRL-CRUP 00 141 00 8D CRUP 00 72 00 48 ║
║ ALT-* 00 55 00 37 CTRL-CRDN 00 145 00 91 CRDN 00 80 00 50 ║
║ ALT-- 00 74 00 4A CTRL-CRLF 00 115 00 73 CRLF 00 75 00 4B ║
║ ALT-+ 00 78 00 4E CTRL-CRRT 00 116 00 74 CRRT 00 77 00 4D ║
║ ALT-ENTER 00 166 00 A6 NUMERIC KEYPAD NUMERIC KEYPAD ║
║ CTRL-/ 00 149 00 95 5 00 76 00 4C ║
║ CTRL-* 00 150 00 96 ║
║ CTRL-- 00 142 00 8E ║
║ CTRL-+ 00 144 00 90 ║
║ CTRL-5 00 143 00 8F ║
║ ║
╚═══════════════════════════════════════════════════════════════════════kd════╝
╓─────────────────────────── Keyboard Ascii Chart ────────────page 1───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 0 00 (NULL) Ctrl 2 20 14 Ctrl T ║
║ 1 01 Ctrl A 21 15 Ctrl U ║
║ 2 02 Ctrl B 22 16 Ctrl V ║
║ 3 03 Ctrl C 23 17 Ctrl W ║
║ 4 04 Ctrl D 24 18 Ctrl X ║
║ 5 05 Ctrl E 25 19 Ctrl Y ║
║ 6 06 Ctrl F 26 1A Ctrl Z ║
║ 7 07 Ctrl G 27 1B ESCAPE ║
║ 8 08 BackSp 28 1C Ctrl \ ║
║ 9 09 TAB 29 1D Ctrl ] ║
║ 10 0A Ctrl J 30 1E Ctrl 6 ║
║ 11 0B Ctrl K 31 1F Ctrl - ║
║ 12 0C Ctrl L 32 20 SPACEBAR ║
║ 13 0D Ctrl M 33 21 ! Ctrl ! ║
║ 14 0E Ctrl N 34 22 " Ctrl " ║
║ 15 0F Ctrl O 35 23 # Ctrl # ║
║ 16 10 Ctrl P 36 24 $ Ctrl $ ║
║ 17 11 Ctrl Q 37 25 % Ctrl % ║
║ 18 12 Ctrl R 38 26 & Ctrl & ║
║ 19 13 Ctrl S 39 27 ' Ctrl ' ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 2───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 40 28 ( ( 60 3C < < ║
║ 41 29 ) ) 61 3D = = ║
║ 42 2A * * 62 3E > > ║
║ 43 2B + + 63 3F ? ? ║
║ 44 2C , , 64 40 @ @ ║
║ 45 2D - - 65 41 A A ║
║ 46 2E . . 66 42 B B ║
║ 47 2F / / 67 43 C C ║
║ 48 30 0 0 68 44 D D ║
║ 49 31 1 1 69 45 E E ║
║ 50 32 2 2 70 46 F F ║
║ 51 33 3 3 71 47 G G ║
║ 52 34 4 4 72 48 H H ║
║ 53 35 5 5 73 49 I I ║
║ 54 36 6 6 74 4A J J ║
║ 55 37 7 7 75 4B K K ║
║ 56 38 8 8 76 4C L L ║
║ 57 39 9 9 77 4D M M ║
║ 58 3A : : 78 4E N N ║
║ 59 3B ; ; 79 4F O O ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 3───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 80 50 P P 100 64 d d ║
║ 81 51 Q Q 101 65 e e ║
║ 82 52 R R 102 66 f f ║
║ 83 53 S S 103 67 g g ║
║ 84 54 T T 104 68 h h ║
║ 85 55 U U 105 69 i i ║
║ 86 56 V V 106 6A j j ║
║ 87 57 W W 107 6B k k ║
║ 88 58 X X 108 6C l l ║
║ 89 59 Y Y 109 6D m m ║
║ 90 5A Z Z 110 6E n n ║
║ 91 5B [ [ 111 6F o o ║
║ 92 5C \ \ 112 70 p p ║
║ 93 5D ] ] 113 71 q q ║
║ 94 5E ^ ^ 114 72 r r ║
║ 95 5F _ _ 115 73 s s ║
║ 96 60 ` ` 116 74 t t ║
║ 97 61 a a 117 75 u u ║
║ 98 62 b b 118 76 v v ║
║ 99 63 c c 119 77 w w ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 4───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 120 78 x x 140 8C î Alt 140 ║
║ 121 79 y y 141 8D ì Alt 141 ║
║ 122 7A z z 142 8E Ä Alt 142 ║
║ 123 7B { { 143 8F Å Alt 143 ║
║ 124 7C | | 144 90 É Alt 144 ║
║ 125 7D } } 145 91 æ Alt 145 ║
║ 126 7E ~ ~ 146 92 Æ Alt 146 ║
║ 127 7F Ctrl BS 147 93 ô Alt 147 ║
║ 128 80 Ç Alt 128 148 94 ö Alt 148 ║
║ 129 81 ü TAB 129 149 95 ò Alt 149 ║
║ 130 82 é Alt 130 150 96 û Alt 150 ║
║ 131 83 â Alt 131 151 97 ù Alt 151 ║
║ 132 84 ä Alt 132 152 98 ÿ Alt 152 ║
║ 133 85 à Alt 133 153 99 Ö Alt 153 ║
║ 134 86 å Alt 134 154 9A Ü Alt 154 ║
║ 135 87 ç Alt 135 155 9B ¢ Alt 155 ║
║ 136 88 ê Alt 136 156 9C £ Alt 156 ║
║ 137 89 ë Alt 137 157 9D ¥ Alt 157 ║
║ 138 8A è Alt 138 158 9E ₧ Alt 158 ║
║ 139 8B ï Alt 139 159 9F ƒ Alt 159 ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 5───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 160 A0 á Alt 160 180 B4 ┤ Alt 180 ║
║ 161 A1 í Alt 161 181 B5 ╡ Alt 181 ║
║ 162 A2 ó Alt 162 182 B6 ╢ Alt 182 ║
║ 163 A3 ú Alt 163 183 B7 ╖ Alt 183 ║
║ 164 A4 ñ Alt 164 184 B8 ╕ Alt 184 ║
║ 165 A5 Ñ Alt 165 185 B9 ╣ Alt 185 ║
║ 166 A6 ª Alt 166 186 BA ║ Alt 186 ║
║ 167 A7 º Alt 167 187 BB ╗ Alt 187 ║
║ 168 A8 ¿ Alt 168 188 BC ╝ Alt 188 ║
║ 169 A9 ⌐ Alt 169 189 BD ╜ Alt 189 ║
║ 170 AA ¬ Alt 170 190 BE ╛ Alt 190 ║
║ 171 AB ½ Alt 171 191 BF ┐ Alt 191 ║
║ 172 AC ¼ Alt 172 192 C0 └ Alt 192 ║
║ 173 AD ¡ Alt 173 193 C1 ┴ Alt 193 ║
║ 174 AE « Alt 174 194 C2 ┬ Alt 194 ║
║ 175 AF » Alt 175 195 C3 ├ Alt 195 ║
║ 176 B0 ░ Alt 176 196 C4 ─ Alt 196 ║
║ 177 B1 ▒ Alt 177 197 C5 ┼ Alt 197 ║
║ 178 B2 ▓ Alt 178 198 C6 ╞ Alt 198 ║
║ 179 B3 │ Alt 179 199 C7 ╟ Alt 199 ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 6───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 200 C8 ╚ Alt 200 220 DC ▄ Alt 220 ║
║ 201 C9 ╔ Alt 201 221 DD ▌ Alt 221 ║
║ 202 CA ╩ Alt 202 222 DE ▐ Alt 222 ║
║ 203 CB ╦ Alt 203 223 DF ▀ Alt 223 ║
║ 204 CC ╠ Alt 204 224 E0 α Alt 224 ║
║ 205 CD ═ Alt 205 225 E1 ß Alt 225 ║
║ 206 CE ╬ Alt 206 226 E2 Γ Alt 226 ║
║ 207 CF ╧ Alt 207 227 E3 π Alt 227 ║
║ 208 D0 ╨ Alt 208 228 E4 Σ Alt 228 ║
║ 209 D1 ╤ Alt 209 229 E5 σ Alt 229 ║
║ 210 D2 ╥ Alt 210 230 E6 µ Alt 230 ║
║ 211 D3 ╙ Alt 211 231 E7 τ Alt 231 ║
║ 212 D4 ╘ Alt 212 232 E8 Φ Alt 232 ║
║ 213 D5 ╒ Alt 213 233 E9 Θ Alt 233 ║
║ 214 D6 ╓ Alt 214 234 EA Ω Alt 234 ║
║ 215 D7 ╫ Alt 215 235 EB δ Alt 235 ║
║ 216 D8 ╪ Alt 216 236 EC ∞ Alt 236 ║
║ 217 D9 ┘ Alt 217 237 ED φ Alt 237 ║
║ 218 DA ┌ Alt 218 238 EE ε Alt 238 ║
║ 219 DB █ Alt 219 239 EF ∩ Alt 239 ║
╙───────────────────────────────────────────────────────────────────────gkg────╜
╓─────────────────────────── Keyboard Ascii Chart ────────────page 7───────────╖
║ Dec Hex Symbol Keypress Dec Hex Symbol Keypress ║
║ 240 F0 Alt 240 ║
║ 241 F1 ± Alt 241 ║
║ 242 F2 ≥ Alt 242 ║
║ 243 F3 ≤ Alt 243 ║
║ 244 F4 ⌠ Alt 244 ║
║ 245 F5 ⌡ Alt 245 ║
║ 246 F6 ÷ Alt 246 ║
║ 247 F7 ≈ Alt 247 ┌───────────────────────┐ ║
║ 248 F8 ° Alt 248 │Courtesy of Patriot BBS│ ║
║ 249 F9 ∙ Alt 249 │ 1:157/534@fidonet │ ║
║ 250 FA · Alt 250 │ (216)628-4860 USR DS │ ║
║ 251 FB √ Alt 251 │ DDS/GSDS/SDN/SDS │ ║
║ 252 FC ⁿ Alt 252 └───────────────────────┘ ║
║ 253 FD ² Alt 253 ║
║ 254 FE ■ Alt 254 ║
║ 255 FF (blank) Alt 255 ║
║ ║
║ Characters above decimal 127 are displayed with the CTRL or ALT toggles. ║
║ Holding ALT down while pressing 2 5 1 produces a √ when ALT is released. ║
║ * Symbols for ascii codes 8,9,10,13 and 240 could not be displayed here. ║
╙───────────────────────────────────────────────────────────────────────gkg────╜