wire / terminal-csi / ech

CSI ECH — Erase Character

ECH (final 'X') erases Pn characters starting at the cursor by overwriting them with blanks (current background color), WITHOUT shifting the rest of the line. The cursor position is unchanged. Pn defaults to 1. Contrast with DCH which deletes and shifts.

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

aka: ECH · erase character · ESC [ X

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
ech ECH — Erase Character (X) \x1b[4X CSI Pn X erases Pn characters starting at the cursor, replacing them with blanks in the current background color. Characters after the erased run do NOT shift; the cursor does not move.

gotchas


provenance

per-fact attribution:

see also

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