summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2023-10-07 07:40:45 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-10-07 12:16:59 +0200
commit559fdc278681c98470749adb59f01cd071720458 (patch)
tree5f8e0953f2d64ee761a9cba1e74ef62431ae151d
parentFix wide glyphs breaking "nowrap" mode (diff)
downloadst-559fdc278681c98470749adb59f01cd071720458.tar.gz
st-559fdc278681c98470749adb59f01cd071720458.zip
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).
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/st.c b/st.c
index 4754c87..d6478f5 100644
--- a/st.c
+++ b/st.c
@@ -2330,6 +2330,7 @@ eschandle(uchar ascii)
2330 treset(); 2330 treset();
2331 resettitle(); 2331 resettitle();
2332 xloadcols(); 2332 xloadcols();
2333 xsetmode(0, MODE_HIDE);
2333 break; 2334 break;
2334 case '=': /* DECPAM -- Application keypad */ 2335 case '=': /* DECPAM -- Application keypad */
2335 xsetmode(1, MODE_APPKEYPAD); 2336 xsetmode(1, MODE_APPKEYPAD);