IRM—Insert/Replace Mode

This control function selects how the terminal adds characters to page memory. The terminal always adds new characters at the cursor position.

Default: Replace.

Format

CSI
9/11
4
3/4
h
6/8
Set: insert mode.
CSI
9/11
4
3/4
l
6/12
Reset: replace mode.

Description

If IRM mode is set, then new characters move characters in page memory to the right. Characters moved past the page's right border are lost.

If IRM mode is reset, then new characters replace the character at the cursor position.