[hackers] [st] On terminal resize, clear the alt screen with its own cursor. || Colona

From: <git_AT_suckless.org>
Date: Sat, 26 Apr 2014 00:01:04 +0200

commit 8f11e1cd034ff28ca47bb4955505db7fa8016ba8
Author: Colona <colona_AT_ycc.fr>
Date: Thu Apr 24 20:35:41 2014 +0200

    On terminal resize, clear the alt screen with its own cursor.
    
    Currently the alternate screen get messed up on resize if it has
    different colors or mode.

diff --git a/st.c b/st.c
index c9ef574..b37069c 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
Received on Sat Apr 26 2014 - 00:01:04 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 26 2014 - 00:12:19 CEST