Terminal Guide

Save Cursor (DECSC)

ESC1B 737
urxvt
xterm
vte
konsole
linuxvc

Save cursor position and further state.

The primary and alternate screen have distinct save state.

The following state is saved:

One saved state is kept per screen (main / alternative). If for the current screen state was already saved it is overwritten.

The state can be restored using restore cursor

urxvt ( ✓ )

🛆 the current cursor position is not saved relative to the origin set via cursor origin. 🛆 Not saved:

xterm ( ✔ )

🛈 Until xterm 335 in left and right margin mode restoring of the cursor position was broken.

vte ( ✓ )

🛆 cursor position is stored absolute (not with regard to origin) 🛆 saves modes insert mode, send-receive mode and reverse display colors

konsole ( ✓ )

🛆 Does not store G0 - G3. But stores current mapping of GL and GR. 🛈 Before version 22.04.0, did not store state of mode cursor origin 🛆 cursor position is stored absolute (not with regard to origin) 🛆 Does not store pending wrap state.

linuxvc ( ✓ )

🛆 the current cursor position is not saved relative to the origin set via cursor origin. 🛆 Not saved: