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).
This commit is contained in:
Peter Hofmann 2023-10-07 07:40:45 +02:00 committed by Hiltjo Posthuma
parent 8abe4bcb41
commit 559fdc2786

1
st.c
View File

@ -2330,6 +2330,7 @@ eschandle(uchar ascii)
treset(); treset();
resettitle(); resettitle();
xloadcols(); xloadcols();
xsetmode(0, MODE_HIDE);
break; break;
case '=': /* DECPAM -- Application keypad */ case '=': /* DECPAM -- Application keypad */
xsetmode(1, MODE_APPKEYPAD); xsetmode(1, MODE_APPKEYPAD);