wire / terminal-csi / decscusr

CSI DECSCUSR — Set Cursor Style

DECSCUSR (CSI Ps SP q — note the space before 'q') selects the cursor shape and blink: 0 or 1 = blinking block, 2 = steady block, 3 = blinking underline, 4 = steady underline, 5 = blinking bar, 6 = steady bar. The intermediate byte is a literal space (0x20) before the final 'q'.

terminal-csi kind control-sequence status de-facto verification verified tier B terminal-escape@1

aka: DECSCUSR · cursor style · cursor shape · blinking bar cursor · steady block · ESC [ q

frame

CSI introducer: \x1b[ ESC [ (0x1B 0x5B)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
steady-block 2 — steady block \x1b[2 q CSI 2 SP q selects a steady (non-blinking) block cursor.
steady-underline 4 — steady underline \x1b[4 q CSI 4 SP q selects a steady underline cursor.
steady-bar 6 — steady bar \x1b[6 q CSI 6 SP q selects a steady vertical bar cursor.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-csi/decscusr or /terminal-csi/decscusr.json