wire / terminal-dec-private-mode / 7
CSI ? 7 h (DECAWM set, the usual default) enables autowrap: writing a character in the last column moves the cursor to the start of the next line (with the 'pending wrap' deferred-wrap behavior). CSI ? 7 l disables autowrap, so characters at the right margin overwrite the last cell in place.
aka: DECAWM · autowrap · auto-wrap mode · DECSET 7 · ?7h / ?7l · line wrap
DEC-private-mode introducer: \x1b[? ESC [ ? (0x1B 0x5B 0x3F)
terminator (none): ST · BEL
| id | name | bytes (ST) | meaning |
|---|---|---|---|
| set | Enable (DECSET) | \x1b[?7h | CSI ? 7 h enables autowrap: a glyph written in the last column sets a 'pending wrap' so the NEXT glyph appears at column 1 of the following line (the VT deferred-wrap rule). |
| reset | Disable (DECRST) | \x1b[?7l | CSI ? 7 l disables autowrap: glyphs written at the right margin overwrite the last column and the cursor does not advance past it. |
per-fact attribution:
agent: curl -H 'accept: application/json' wire.phall.io/terminal-dec-private-mode/7
or /terminal-dec-private-mode/7.json