Soft Reset (DECSTR)
ESC[
!
p
Soft Reset.
Changes:
- Resets palette colors to initial state (like reset palette colors without parameter)
- Reset bold, underline, blink, inverse and invisible
- Reset foreground, background and decoration colors
- Make cursor visible (set cursor visible)
- Reset cursor shape to initial state
- Reset cursor blinking to initial state
- Reset cursor origin mode
- Set scrolling region to full size (resets set top and bottom margins and set left and right margin, does not change left and right margin mode)
- Set G0-G4 = ASCII, select G0 into GL, select G2 into GR, reset single shift
- Resets key press modifier reporting format (like configure modifier key reporting formats without parameters)
- Disables cursor key format mode
- Unsets set application keypad mode (like reset application keypad mode)
- Enable keyboard input (resets disable keyboard input)
- Revert changes to modes wraparound mode and reverse wrap mode
- Reset mode insert mode
- Reinitializes the saved cursor state (like save cursor just after the reset), but forces cursor position in the saved cursor state to (1, 1)
- Disable selective erase protection for printed characters. (like select character protection attribute without parameters)
- Resets check sum settings to initial configuration (see select checksum extension)
xterm (
✓
)
🛆 Selective erase protection might be left in an inconsistent state as protection bits are still set for cells but are not actually used.