diff options
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1063,6 +1063,11 @@ tnew(int col, int row) treset(); } +int tisaltscr(void) +{ + return IS_SET(MODE_ALTSCREEN); +} + void tswapscreen(void) { @@ -2760,7 +2765,8 @@ draw(void) drawregion(0, 0, term.col, term.row); if (term.scr == 0) xdrawcursor(cx, term.c.y, term.line[term.c.y][cx], - term.ocx, term.ocy, term.line[term.ocy][term.ocx]); + term.ocx, term.ocy, term.line[term.ocy][term.ocx], + term.line[term.ocy], term.col); term.ocx = cx, term.ocy = term.c.y; xfinishdraw(); |