全部博文(1144)
分类: LINUX
2006-07-21 16:58:17
控制字符很多时用来代表由计算机向硬件(包括电报机、打字机、调制解调器(Modem)等)发出动作的信号,最常用的例如:
七定义了33个控制字符(于ISO 646定义),位于0x00-0x1F及0x7F。
Seq | Dec | Hex | Abbr | Character name |
---|---|---|---|---|
00 | 0x00 | NUL | Null (零空) | |
^A | 01 | 0x01 | SOH | Start of Heading (讯首) |
^B | 02 | 0x02 | STX | Start of Text (文首) |
^C | 03 | 0x03 | ETX | End of Text (文末) |
^D | 04 | 0x04 | EOT | End of Transmission (传输结束) |
^E | 05 | 0x05 | ENQ | Enquiry (询问) |
^F | 06 | 0x06 | ACK | Acknowledge (确认) |
^G | 07 | 0x07 | BEL | Bell (警铃) |
^H | 08 | 0x08 | BS | Backspace (退格) |
^I | 09 | 0x09 | HT | Horizontal Tab (水平列表) |
^J | 10 | 0x0A | LF | Line Feed (跳行) |
^K | 11 | 0x0B | VT | Vertical Tab (垂直列表) |
^L | 12 | 0x0C | FF | Form Feed (馈表) |
^M | 13 | 0x0D | CR | Carriage Return (回键) |
^N | 14 | 0x0E | SO | Shift Out (移出) |
^O | 15 | 0x0F | SI | Shift In (移入) |
^P | 16 | 0x10 | DLE | Data Link Escape (资料链逸出) |
^Q | 17 | 0x11 | DC1 | Device Control 1 (装置控制1) |
^R | 18 | 0x12 | DC2 | Device Control 2 (装置控制2) |
^S | 19 | 0x13 | DC3 | Device Control 3 (装置控制3) |
^T | 20 | 0x14 | DC4 | Device Control 4 (装置控制4) |
^U | 21 | 0x15 | NAK | Negative Acknowledge (否认) |
^V | 22 | 0x16 | SYN | Synchronous Idle (同步闲置) |
^W | 23 | 0x17 | ETB | End of Transmission Block (传输段末) |
^X | 24 | 0x18 | CAN | Cancel (取消) |
^Y | 25 | 0x19 | EM | End of Medium (媒体完结) |
^Z | 26 | 0x1A | SUB | Substitute (代替字符) |
^[ | 27 | 0x1B | ESC | Escape (逸出) |
^\ | 28 | 0x1C | FS | File Separator (档分隔器) |
^] | 29 | 0x1D | GS | Group Separator (群分隔器) |
^^ | 30 | 0x1E | RS | Record Separator (记录分隔器) |
^_ | 31 | 0x1F | US | Unit Separator (单元分隔器) |
127 | 0x7F | DEL | Delete (删除) |