Unhide cursor on RIS (\033c)

It is unclear if it's "required" to do this on RIS, but it's useful when
calling reset(1) after interactive programs have crashed and garbled up
the screen.

FWIW, other terminals do it as well (tested with XTerm, VTE, Kitty,
Alacritty, Linux VT).

ref.
https://git.suckless.org/st/commit/559fdc278681c98470749adb59f01cd071720458.html
This commit is contained in:
Bakkeby 2023-10-08 20:22:22 +02:00
parent 3cbaecfa31
commit 1df649dfbd
1 changed files with 1 additions and 0 deletions

1
st.c
View File

@ -3079,6 +3079,7 @@ eschandle(uchar ascii)
#endif // CSI_22_23_PATCH
resettitle();
xloadcols();
xsetmode(0, MODE_HIDE);
#if SCROLLBACK_PATCH
if (!IS_SET(MODE_ALTSCREEN)) {
term.scr = 0;