]> git.armaanb.net Git - st.git/commitdiff
On terminal resize, clear the alt screen with its own cursor.
authorColona <colona@ycc.fr>
Thu, 24 Apr 2014 18:35:41 +0000 (20:35 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 25 Apr 2014 21:57:44 +0000 (23:57 +0200)
Currently the alternate screen get messed up on resize if it has
different colors or mode.

st.c

diff --git a/st.c b/st.c
index c9ef574018bdd32907762bde868da1833deea977..b37069c6934e69b3007a350b7d77f8147002ab3a 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2674,7 +2674,9 @@ tresize(int col, int row) {
                if(0 < col && minrow < row) {
                        tclearregion(0, minrow, col - 1, row - 1);
                }
+               tcursor(CURSOR_SAVE);
                tswapscreen();
+               tcursor(CURSOR_LOAD);
        } while(orig != term.line);
 
        return (slide > 0);