From 1df649dfbd2efeffd8a0f2a455e6c2a559358b04 Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Sun, 8 Oct 2023 20:22:22 +0200 Subject: [PATCH] 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 --- st.c | 1 + 1 file changed, 1 insertion(+) diff --git a/st.c b/st.c index 653d3b9..7e9ea5a 100644 --- a/st.c +++ b/st.c @@ -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;