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
🛆 the current cursor position is not saved relative to the origin set via cursor origin. 🛆 Not saved:
🛈 Until xterm 335 in left and right margin mode restoring of the cursor position was broken.
🛆 cursor position is stored absolute (not with regard to origin) 🛆 saves modes insert mode, send-receive mode and reverse display colors
🛆 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.
🛆 the current cursor position is not saved relative to the origin set via cursor origin. 🛆 Not saved: