summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2023-10-07 07:40:45 +0200
committerRafael Marçalo <raroma09@gmail.com>2023-10-08 23:32:09 +0100
commita382ea817b47f308808b3656334b1c61d85fd880 (patch)
treec5ed7c0d757eb7b0209c7fbec140bcc706992a1d
parent088a7d71781fdeba1e8f67d4df76e37bfa6fe6dd (diff)
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 d1615e2..be2be2c 100644
--- a/st.c
+++ b/st.c
@@ -2418,6 +2418,7 @@ eschandle(uchar ascii)
treset();
resettitle();
xloadcols();
+ xsetmode(0, MODE_HIDE);
break;
case '=': /* DECPAM -- Application keypad */
xsetmode(1, MODE_APPKEYPAD);