On terminal resize, clear the alt screen with its own cursor. - st - simple terminal (HTM) git clone https://git.parazyd.org/st (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 8f11e1cd034ff28ca47bb4955505db7fa8016ba8 (DIR) parent 844c503c800e5e1db1e409f5db729431ee2e5c00 (HTM) Author: Colona <colona@ycc.fr> Date: Thu, 24 Apr 2014 20:35:41 +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. Diffstat: M st.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- (DIR) diff --git 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);