summaryrefslogtreecommitdiff
path: root/libcons/vcons-scrollback.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-17 11:47:15 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-17 11:47:15 +0000
commitdbe4c7712b652b7ad3126e94c47b00fa2bbb0a05 (patch)
treea42bb2ef70273394c238990d8182304f9ffd8317 /libcons/vcons-scrollback.c
parent43e87b8a95aa36ab5a7f78de3034e081bac2e8ad (diff)
2002-09-16 Marcus Brinkmann <marcus@gnu.org>
* cons.h: Add prototype for cons_vcons_clear. * file-changed.c (cons_S_file_changed): Prepare all areas we write to with cons_vcons_clear (unless we use cons_vcons_scroll already). * vcons-refresh.c (cons_vcons_refresh): Likewise. * vcons-scrollback.c (_cons_vcons_scrollback): Likewise.
Diffstat (limited to 'libcons/vcons-scrollback.c')
-rw-r--r--libcons/vcons-scrollback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcons/vcons-scrollback.c b/libcons/vcons-scrollback.c
index 84fef0b0..c54303e9 100644
--- a/libcons/vcons-scrollback.c
+++ b/libcons/vcons-scrollback.c
@@ -84,6 +84,11 @@ _cons_vcons_scrollback (vcons_t vcons, cons_scroll_t type, float value)
|| (scrolling < 0
&& (uint32_t) (-scrolling) < vcons->state.screen.height))
cons_vcons_scroll (vcons, scrolling);
+ else if ((scrolling > 0 && scrolling == vcons->state.screen.height)
+ || (scrolling < 0
+ && (uint32_t) (-scrolling) == vcons->state.screen.height))
+ cons_vcons_clear (vcons, vcons->state.screen.width
+ * vcons->state.screen.height, 0, 0);
vis_start = vcons->state.screen.width
* (new_cur_line % vcons->state.screen.lines);