Back to Ghostty Org

Set Cursor Style (DECSCUSR)

docs/vt/csi/decscusr.mdx

latest646 B
Original Source

<VTSequence sequence={["CSI", "Pn", " ", "q"]} />

If n is omitted, n defaults to 0. n must be an integer between 0 and 6 (inclusive). The mapping of n to cursor style is below:

nstyle
0terminal default
1blinking block
2steady block
3blinking underline
4steady underline
5blinking vertical bar
6steady vertical bar

For n = 0, the terminal default is up to the terminal and is inconsistent across terminal implementations. The default may also be impacted by terminal configuration.