[dev] [st] [PATCH] On terminal resize, clear the alt screen with its own cursor.

From: Colona <colona_AT_ycc.fr>
Date: Thu, 24 Apr 2014 20:35:41 +0200

Currently the alternate screen get messed up on resize if it has
different colors or mode.

---
 st.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/st.c b/st.c
index 60243a7..c1f983f 100644
--- a/st.c
+++ b/st.c
_AT_@ -2680,7 +2680,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);
-- 
1.9.2
-- 
Ivan "Colona" Delalande
Received on Thu Apr 24 2014 - 20:35:41 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 24 2014 - 20:48:03 CEST