diff options
| author | Colona <colona@ycc.fr> | 2014-04-24 20:35:41 +0200 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-25 23:57:44 +0200 |
| commit | 8f11e1cd034ff28ca47bb4955505db7fa8016ba8 (patch) | |
| tree | d494cd85115065aa6880931838b0db9b3c0a04a9 | |
| parent | 844c503c800e5e1db1e409f5db729431ee2e5c00 (diff) | |
| download | st-8f11e1cd034ff28ca47bb4955505db7fa8016ba8.tar.gz st-8f11e1cd034ff28ca47bb4955505db7fa8016ba8.zip | |
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.
| -rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -2674,7 +2674,9 @@ tresize(int col, int row) { | |||
| 2674 | if(0 < col && minrow < row) { | 2674 | if(0 < col && minrow < row) { |
| 2675 | tclearregion(0, minrow, col - 1, row - 1); | 2675 | tclearregion(0, minrow, col - 1, row - 1); |
| 2676 | } | 2676 | } |
| 2677 | tcursor(CURSOR_SAVE); | ||
| 2677 | tswapscreen(); | 2678 | tswapscreen(); |
| 2679 | tcursor(CURSOR_LOAD); | ||
| 2678 | } while(orig != term.line); | 2680 | } while(orig != term.line); |
| 2679 | 2681 | ||
| 2680 | return (slide > 0); | 2682 | return (slide > 0); |
