ctrl.go 550 B

1234567891011121314151617
  1. package ansi
  2. // RequestXTVersion is a control sequence that requests the terminal's XTVERSION. It responds with a DSR sequence identifying the version.
  3. //
  4. // CSI > Ps q
  5. // DCS > | text ST
  6. //
  7. // See https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-PC-Style-Function-Keys
  8. const RequestXTVersion = "\x1b[>0q"
  9. // RequestPrimaryDeviceAttributes is a control sequence that requests the
  10. // terminal's primary device attributes (DA1).
  11. //
  12. // CSI c
  13. //
  14. // See https://vt100.net/docs/vt510-rm/DA1.html
  15. const RequestPrimaryDeviceAttributes = "\x1b[c"