Representation
For systems using the ASCII character code, XOFF is generally represented using a character or byte with value 19; XON with value 17.
The ASCII standard does not reserve any control characters for use as XON/XOFF specifically. However, it does provide four generic "device control" characters (DC1 through DC4). The Teletype Model 33 ASR adopted two of these, DC3 and DC1, for use as XOFF and XON, respectively. This usage was copied by others, and is now a de facto standard. The keyboard equivalents of CTRL+S for XOFF, and CTRL+Q for XON, also derive from this usage.
Code | Meaning | ASCII | Dec | Hex | Keyboard |
---|---|---|---|---|---|
XOFF | Pause transmission | DC3 | 19 | 13 | CTRL+S |
XON | Resume transmission | DC1 | 17 | 11 | CTRL+Q |
Read more about this topic: Software Flow Control