Эх сурвалжийг харах

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.
Colona 11 жил өмнө
parent
commit
8f11e1cd03
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      st.c

+ 2 - 0
st.c

@@ -2674,7 +2674,9 @@ tresize(int col, int row) {
 		if(0 < col && minrow < row) {
 		if(0 < col && minrow < row) {
 			tclearregion(0, minrow, col - 1, row - 1);
 			tclearregion(0, minrow, col - 1, row - 1);
 		}
 		}
+		tcursor(CURSOR_SAVE);
 		tswapscreen();
 		tswapscreen();
+		tcursor(CURSOR_LOAD);
 	} while(orig != term.line);
 	} while(orig != term.line);
 
 
 	return (slide > 0);
 	return (slide > 0);