vendor/github.com/charmbracelet/x/ansi/ctrl.go

17 lines · 550 bytes

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