wire / terminal-csi / il

CSI IL / DL — Insert / Delete Line

IL (final 'L') inserts Pn blank lines at the cursor row, scrolling lines below downward within the scroll region; DL (final 'M') deletes Pn lines at the cursor row, scrolling lines below upward. Both default Pn to 1 and operate only within the current scroll region (DECSTBM).

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

aka: IL · DL · insert line · delete line · ESC [ L · ESC [ M

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
il IL — Insert Line (L) \x1b[2L CSI Pn L inserts Pn blank lines at the cursor row; existing lines from the cursor down scroll downward within the scroll region. Blank lines take the current background color.
dl DL — Delete Line (M) \x1b[2M CSI Pn M deletes Pn lines starting at the cursor row; lines below scroll upward and blank lines appear at the bottom of the scroll region.

gotchas


provenance

per-fact attribution:

see also

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