Salvaged Tables
I messed up my previous posting (here) which was supposed to be a Table full of relevant Tables. So we try again here.
TABLE OF CONTENTS
1. Python ESCAPE codes
(Google) (G4G- how2 print) (GitHub/ANSI)
2. SYMB[O]L Unicode table
Symbl Table of Sections:
(1) Sample Table of Escape Sequences (here):
Escape Sequence | Meaning | Notes |
---|---|---|
| Backslash and newline ignored | (1) |
| Backslash ( | |
| Single quote ( | |
| Double quote ( | |
| ASCII Bell (BEL) | |
| ASCII Backspace (BS) | |
| ASCII Formfeed (FF) | |
| ASCII Linefeed (LF) | |
| ASCII Carriage Return (CR) | |
| ASCII Horizontal Tab (TAB) | |
| ASCII Vertical Tab (VT) | |
| Character with octal value ooo | (2,4) |
| Character with hex value hh | (3,4) |
(2)
Name | decimal | octal | hex | C-escape | Ctrl-Key | Description |
---|---|---|---|---|---|---|
BEL | 7 | 007 | 0x07 | \a | ^G | Terminal bell |
BS | 8 | 010 | 0x08 | \b | ^H | Backspace |
HT | 9 | 011 | 0x09 | \t | ^I | Horizontal TAB |
LF | 10 | 012 | 0x0A | \n | ^J | Linefeed (newline) |
VT | 11 | 013 | 0x0B | \v | ^K | Vertical TAB |
FF | 12 | 014 | 0x0C | \f | ^L | Formfeed (also: New page NP ) |
CR | 13 | 015 | 0x0D | \r | ^M | Carriage return |
ESC | 27 | 033 | 0x1B | \e * | ^[ | Escape character |
DEL | 127 | 177 | 0x7F | <none> | <none> | Delete character |
ANSI Escape Sequences
Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
Cursor Controls
ESC Code Sequence | Description |
---|---|
ESC[H | moves cursor to home position (0, 0) |
ESC[{line};{column}H ESC[{line};{column}f | moves cursor to line #, column # |
ESC[#A | moves cursor up # lines |
ESC[#B | moves cursor down # lines |
ESC[#C | moves cursor right # columns |
ESC[#D | moves cursor left # columns |
ESC[#E | moves cursor to beginning of next line, # lines down |
ESC[#F | moves cursor to beginning of previous line, # lines up |
ESC[#G | moves cursor to column # |
ESC[6n | request cursor position (reports as ESC[#;#R ) |
ESC M | moves cursor one line up, scrolling if needed |
ESC 7 | save cursor position (DEC) |
ESC 8 | restores the cursor to the last saved position (DEC) |
ESC[s | save cursor position (SCO) |
ESC[u | restores the cursor to the last saved position (SCO) |
Comments
Post a Comment