amount
= 1 Inserts amount
columns (over the whole height of the current scrolling region) from the current cursor column. The contents of the column at the current cursor column and the columns to its right (to the right-most line in the scrolling region) are shifted right by amount
columns. The contents of the amount
right-most columns in the scroll region are lost.
If the current cursor position is outside of the current scroll region it does nothing.
If amount
is greater than the remaining number of columns in the scrolling region it is adjusted down.
In left and right margin mode the margins are respected; columns are only scrolled in the scroll region.
If the cell movement splits a multi cell character that character cleared, by replacing it by spaces, keeping its current attributes.
All other cleared space is colored according to the current SGR state.
If amount
= 0 it's adjusted to 1.
The Cursor position is not changed.
🛆 As of xterm 346 split multi column cells are erased using the current SGR state instead of keeping the background color.