Ascii control codes&nb…

原文地址:http://www.cs.tut.fi/~jkorpela/chars/c0.html

The following document lists the control codes (control characters) in Ascii and in newer character code standards like Unicode, which generally try to be compatible with Ascii in the Ascii code range (positions 0 through 127).

code pos.UnicodeDescription in C0 of ISO 646
dec.hex.abbr.name
 00NULNULLA control character used to accomplish media-fill or time-fill. Null characters may be inserted into or removed from a stream of data without affecting the information content of that stream. But then the addition or removal of these characters may affect the information layout and/or the control of equipment.
ctl-A11SOHSTART OF HEADINGA transmission control character used as the first character of a heading of an information message.
ctl-B22STXSTART OF TEXTA transmission control character which precedes a text and which is used to terminate a heading.
ctl-C33ETXEND OF TEXTA transmission control character which terminates a text.
ctl-D44EOTEND OF TRANSMISSIONA transmission control character used to indicate the conclusion of the transmission of one or more texts..
ctl-E55ENQENQUIRYA transmission control character used as a request for a response from a remote station; the response may include station identification and/or station status. When a "Who are you" function is required on the general switched transmission network, the first use of ENQ after the connection is established shall have the meaning "Who are you" (station identification). Subsequent use of ENQ may, or may not, include the function "Who are you", as determined by agreement.
ctl-F66ACKACKNOWLEDGEA transmission control character transmitted by a receiver as an affirmative response to the sender.
ctl-G77BELBELLA control character that is used when there is a need to call for attention; it may control alarm or attention devices.
ctl-H88BSBACKSPACEA format effector which moves the active position one character position backwards on the same line.
ctl-I99HTHORIZONTAL TABULATIONA format effector which advances the active position to the next pre-determined character position on the same line.
ctl-J10ALFLINE FEEDA format effector which advances the active position to the same character position of the next line.
ctl-K11BVTVERTICAL TABULATIONA format effector which advances the active position to the same character position on the next pre-determined line.
ctl-L12CFFFORM FEEDA format effector which advances the active position to the same character position on a pre-determined line of the next form or page.
ctl-M13DCRCARRIAGE RETURNA format effector which moves the active position to the first character position on the same line.
ctl-N14ESOSHIFT OUTA control character which is used in conjunction with SHIFT IN and ESCAPE to extend the graphic character set of the code. It may alter the meaning of octets 33 - 126 (dec.). The effect of this character when using code extension techniques is described in International Standard ISO 2022.
ctl-O15FSISHIFT INA control character which is used in conjunction with SHIFT OUT and ESCAPE to extend the graphic character set of the code. It may reinstate the standard meanings of the octets which follow it. The effect of this character when using code extension techniques is described in International Standard ISO 2022.
ctl-P1610DLEDATA LINK ESCAPEA transmission control character which will change the meaning of a limited number of contiguously following characters. Its is used exclusively to provide supplementary data transmission control functions. Only graphic characters and transmission control characters can be used in DLE sequences.
ctl-Q1711DC1DEVICE CONTROL ONEA device control character which is primarily intended for turning on or starting an ancillary device. If it is not required for this purpose, it may be used to restore a device to the basic mode of operation (see also DC2 and DC3), or for any other device control function not provided by other DCs.
ctl-R1812DC2DEVICE CONTROL TWOA device control character which is primarily intended for turning on or starting an ancillary device. If it is not required for this purpose, it may be used to set a device to a special mode of operation (in which case DC1 is used to restore normal operation), or for any other device control function not provided by other DCs.
ctl-S1913DC3DEVICE CONTROL THREEA device control character which is primarily intended for turning off or stopping an ancillary device. This function may be a secondary level stop, for example, wait, pause, stand-by or halt (in which case DC1 is used to restore normal operation). If it is not required for this purpose, it may be used for any other device control function not provided by other DCs.
ctl-T2014DC4DEVICE CONTROL FOURA device control character which is primarily intended for turning off, stopping or interrupting an ancillary device. If it is not required for this purpose, it may be used for any other device control function not provided by other DCs.
ctl-U2115NAKNEGATIVE ACKNOWLEDGEA transmission control character transmitted by a receiver as a negative response to the sender.
ctl-V2216SYNSYNCHRONOUS IDLEA transmission control character used by a synchronous transmission system in the absence of any other character (idle condition) to provide a signal from which synchronism may be achieved or retained between data terminal equipment.
ctl-W2317ETBEND OF TRANSMISSION BLOCKA transmission control character used to indicate the end of a transmission block of data where data is divided into such blocks for transmission purposes.
ctl-X2418CANCANCELA character, or the first character of a sequence, indicating that the data preceding it is in error. As a result, this data is to be ignored. The specific meaning of this character must be defined for each application and/or between sender and recipient.
ctl-Y2519EMEND OF MEDIUMA control character that may be used to identify the physical end of a medium, or the end of the used portion of a medium, or the end of the wanted portion of data recorded on a medium. The position of this character does not necessarily correspond to the physical end of the medium.
ctl-Z261ASUBSUBSTITUTEA control character used in the place of a character that has been found to be invalid or in error. SUB is intended to be introduced by automatic means.
ctl-[271BESCESCAPEA control character which is used to provide additional control functions. It alters the meaning of a limited number of contiguously following bit combinations. The use of this character is specified in International Standard ISO 2022.
ctl-\281CFSFILE SEPARATORA control character used to separate and qualify data logically; its specific meaning has to be specified for each application. If this character is used in hierarchical order, it delimits a data item called a file.
ctl-]291DGSGROUP SEPARATORA control character used to separate and qualify data logically; its specific meaning has to be specified for each application. If this character is used in hierarchical order, it delimits a data item called agroup.
ctl-^301ERSRECORD SEPARATORA control character used to separate and qualify data logically; its specific meaning has to be specified for each application. If this character is used in hierarchical order, it delimits a data item called arecord.
ctl-_311FUSUNIT SEPARATORA control character used to separate and qualify data logically; its specific meaning has to be specified for each application. If this character is used in hierarchical order, it delimits a data item called aunit.
 1277FDELDELETE(not defined)

Notes:

  • The first column shows the widely used "control-something" name used for control codes. It relates to the fact that on a keyboard, it is often possible to generate a control code using the control (Ctrl, Ctl) key and a normal key.
  • The column C0 of ISO 646 quotes the definition in that document, with typos fixed, and with references to characters and code positions changed to use Unicode names and modern terms.

Historical table

The following table lists the original names of Ascii control codes as defined in 1963.

code pos.Ascii 1963
dec.hex.abbr.name
00NULLNull/Idle
11SOMStart of message
22EOAEnd of address
33EOMEnd of message
44EOTEnd of transmission
55WRU"Who are you...?"
66RU"Are you...?"
77BELLAudible signal
88FE0Format effector
99HT/SKHorizontal tabulation/ Skip (punched card)
10ALFLine feed
11BVTABVertical tabulation
12CFFForm feed
13DCRCarriage return
14ESOShift out
15FSIShift in
1610DC0Device control reserved for data link escape
1711DC1Device control
1812DC2
1913DC3
2014DC4 (STOP)Device control (stop)
2115ERRError
2216SYNCSynchronous idle
2317LEMLogical end of media
2418S0Separator (information)
2519S1
261AS2
271BS3
281CS4
291DS5
301ES6
311FS7
1277FDELDelete/idle

Ascii 1963 assigned code position 126 to the ESC code. Later ESC was moved to position 27, and position 126 was assigned to tilde (~). Similarly ACK was moved from 124 to 6, making room for vertical line (vertical bar, |).


Note: The space character (blank, Ascii code position 32) is not discussed here. It can be classified and processed as a graphic character, or as a control character, or both, depending on context.

Sources:

Date of creation: 2000-10-05. Last modification: 2004-04-20.

Jukka Korpela
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值