wire / terminal-dec-private-mode / 25

DECTCEM 25 — Show / hide text cursor

CSI ? 25 h makes the text cursor visible; CSI ? 25 l hides it. Standardized as DECTCEM (DEC Text Cursor Enable Mode). TUIs hide the cursor while redrawing the screen to avoid a flickering caret, then show it again on exit.

terminal-dec-private-mode kind control-sequence status de-facto verification verified tier B terminal-escape@1

aka: show cursor · hide cursor · DECTCEM · cursor visibility · ?25h / ?25l · civis/cnorm

frame

DEC-private-mode introducer: \x1b[? ESC [ ? (0x1B 0x5B 0x3F)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Show cursor (DECSET) \x1b[?25h CSI ? 25 h makes the text cursor visible (the default state).
reset Hide cursor (DECRST) \x1b[?25l CSI ? 25 l hides the text cursor. Used by TUIs during screen redraws to prevent caret flicker.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-dec-private-mode/25 or /terminal-dec-private-mode/25.json