ýe ANSISUM.NOT FrontDoor 1.99 ANSI.SYS control sequences Summarized here for convenience, hanging on the wall, etc. All sequences are preceded by "escape open-bracket". Cursor Movement H Home cursor ;H Move cursor to , ;f (as in "10;12H") A Move cursor up spaces. One if left off. B " " dn " " " C " " rt " " " D " " lt " " " s Save cursor position u UnSave (restore?) cursor position Screen Control 2J Clear screen K Erase to end of line ;...;m Activate given attributes, where each is 0 - Normal mode 1 - Highlight 4 - Underscore on mono, blue on color 5 - Blink 7 - Reverse video 8 - Nondisplay 3x - Foreground color x 4x - Background color x where x is 0 - Black 1 - Red 2 - Green 3 - Yellow 4 - Blue 5 - Magenta 6 - Cyan 7 - White =h Sets video mode (if is 1-6) to 0 - 40x25 B&W 1 - 40x25 Color 2 - 80x25 B&W 3 - 80x25 Color 4 - 320x200 Color 5 - 320x200 B&W 6 - 640x200 B&W or if is 7 turns on wrap-at-lineend. =l Just like =h for =1-6. if is 7 turns off wrap-at-lineend. Keyboard Control ;...;p where each is either a number or a string in quotes. Numbers are interpreted as ASCII codes, unless a number is a 0, and then the PAIR is treated as ASCII/SCAN. The first keystroke is the one being mapped; all others are the mapping. A simple example: escape open-bracket "aA"p will make A's always come out in caps. More complex: escape open-bracket 0;68;"Dir"p makes F10 type "Dir". N O T E : If you do enough key-redefining to fill a 180 character (or so) translate table, your system will die. Miscellaneous Obscure 6n Causes the next read to standard input (or maybe the keyboard or something) to find an escape open-bracket ;R there. ;R Reports the current cursor position, after a 6n is output. I guess you never output this one.