ASCII Control Codes

1ASCII Control Codes:

  1. NUL (null)
  2. SOH (start of heading)
  3. STX (start of text)
  4. ETX (end of text)
  5. EOT (end of transmission) – Not the same as ETB
  6. ENQ (enquiry)
  7. ACK (acknowledge)
  8. BEL (bell) – Caused teletype machines to ring a bell. Causes a beep in many common terminals and terminal emulation programs.
  9. BS (backspace) – Moves the cursor (or print head) move backwards (left) one space.
  10. TAB (horizontal tab) – Moves the cursor (or print head) right to the next tab stop. The spacing of tab stops is dependent on the output device, but is often either 8 or 10.
  11. LF (NL line feed, new line) – Moves the cursor (or print head) to a new line. On Unix systems, moves to a new line AND all the way to the left.
  12. VT (vertical tab)
  13. FF (form feed) – Advances paper to the top of the next page (if the output device is a printer).
  14. CR (carriage return) – Moves the cursor all the way to the left, but does not advance to the next line.
  15. SO (shift out) – Switches output device to alternate character set.
  16. SI (shift in) – Switches output device back to default character set.
  17. DLE (data link escape)
  18. DC1 (device control 1)
  19. DC2 (device control 2)
  20. DC3 (device control 3)
  21. DC4 (device control 4)
  22. NAK (negative acknowledge)
  23. SYN (synchronous idle)
  24. ETB (end of transmission block) – Not the same as EOT
  25. CAN (cancel)
  26. EM (end of medium)
  27. SUB (substitute)
  28. ESC (escape)
  29. FS (file separator)
  30. GS (group separator)
  31. RS (record separator)
  32. US (unit separator)