c0.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package ansi
  2. // C0 control characters.
  3. //
  4. // These range from (0x00-0x1F) as defined in ISO 646 (ASCII).
  5. // See: https://en.wikipedia.org/wiki/C0_and_C1_control_codes
  6. const (
  7. // NUL is the null character (Caret: ^@, Char: \0).
  8. NUL = 0x00
  9. // SOH is the start of heading character (Caret: ^A).
  10. SOH = 0x01
  11. // STX is the start of text character (Caret: ^B).
  12. STX = 0x02
  13. // ETX is the end of text character (Caret: ^C).
  14. ETX = 0x03
  15. // EOT is the end of transmission character (Caret: ^D).
  16. EOT = 0x04
  17. // ENQ is the enquiry character (Caret: ^E).
  18. ENQ = 0x05
  19. // ACK is the acknowledge character (Caret: ^F).
  20. ACK = 0x06
  21. // BEL is the bell character (Caret: ^G, Char: \a).
  22. BEL = 0x07
  23. // BS is the backspace character (Caret: ^H, Char: \b).
  24. BS = 0x08
  25. // HT is the horizontal tab character (Caret: ^I, Char: \t).
  26. HT = 0x09
  27. // LF is the line feed character (Caret: ^J, Char: \n).
  28. LF = 0x0A
  29. // VT is the vertical tab character (Caret: ^K, Char: \v).
  30. VT = 0x0B
  31. // FF is the form feed character (Caret: ^L, Char: \f).
  32. FF = 0x0C
  33. // CR is the carriage return character (Caret: ^M, Char: \r).
  34. CR = 0x0D
  35. // SO is the shift out character (Caret: ^N).
  36. SO = 0x0E
  37. // SI is the shift in character (Caret: ^O).
  38. SI = 0x0F
  39. // DLE is the data link escape character (Caret: ^P).
  40. DLE = 0x10
  41. // DC1 is the device control 1 character (Caret: ^Q).
  42. DC1 = 0x11
  43. // DC2 is the device control 2 character (Caret: ^R).
  44. DC2 = 0x12
  45. // DC3 is the device control 3 character (Caret: ^S).
  46. DC3 = 0x13
  47. // DC4 is the device control 4 character (Caret: ^T).
  48. DC4 = 0x14
  49. // NAK is the negative acknowledge character (Caret: ^U).
  50. NAK = 0x15
  51. // SYN is the synchronous idle character (Caret: ^V).
  52. SYN = 0x16
  53. // ETB is the end of transmission block character (Caret: ^W).
  54. ETB = 0x17
  55. // CAN is the cancel character (Caret: ^X).
  56. CAN = 0x18
  57. // EM is the end of medium character (Caret: ^Y).
  58. EM = 0x19
  59. // SUB is the substitute character (Caret: ^Z).
  60. SUB = 0x1A
  61. // ESC is the escape character (Caret: ^[, Char: \e).
  62. ESC = 0x1B
  63. // FS is the file separator character (Caret: ^\).
  64. FS = 0x1C
  65. // GS is the group separator character (Caret: ^]).
  66. GS = 0x1D
  67. // RS is the record separator character (Caret: ^^).
  68. RS = 0x1E
  69. // US is the unit separator character (Caret: ^_).
  70. US = 0x1F
  71. )