]> Sergey Matveev's repositories - st.git/blobdiff - st.c
Unhide cursor on RIS (\033c)
[st.git] / st.c
diff --git a/st.c b/st.c
index 3d250ddcdb95707453254d3f717dd8022d122fb9..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);
@@ -2477,7 +2478,10 @@ check_control_code:
        }
 
        if (term.c.x+width > term.col) {
-               tnewline(1);
+               if (IS_SET(MODE_WRAP))
+                       tnewline(1);
+               else
+                       tmoveto(term.col - width, term.c.y);
                gp = &term.line[term.c.y][term.c.x];
        }