]> Sergey Matveev's repositories - st.git/commitdiff
Unhide cursor on RIS (\033c)
authorPeter Hofmann <scm@uninformativ.de>
Sat, 7 Oct 2023 05:40:45 +0000 (07:40 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 7 Oct 2023 10:16:59 +0000 (12:16 +0200)
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).

st.c

diff --git a/st.c b/st.c
index 4754c873405c4fbe30b7b8467f6e469ea25bf231..d6478f55a2498f36bc1c0fa54bdff5de94e1b114 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2330,6 +2330,7 @@ eschandle(uchar ascii)
                treset();
                resettitle();
                xloadcols();
+               xsetmode(0, MODE_HIDE);
                break;
        case '=': /* DECPAM -- Application keypad */
                xsetmode(1, MODE_APPKEYPAD);