From 513afcf4f8cd67275bad59251d1ee2a845d0ddca Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 28 Aug 2002 17:28:36 +0000 Subject: hurd/ 2002-08-28 Marcus Brinkmann * console.h (struct cons_display): Fix comment on CUR_LINE. console/ 2002-08-28 Marcus Brinkmann * display.c (screen_fill): Take CUR_LINES modulo LINES. (screen_shift_left): Likewise. (screen_shift_right): Likewise. (linefeed): Don't take CUR_LINES modulo LINES here. libcons/ 2002-08-28 Marcus Brinkmann * file-changed.c (cons_S_file_changed): Take NEW_CUR_LINE modulo VCONS->state.screen.lines where appropriate. Adapt calculation of SCROLLING, and limit it to the screen size. Only scroll at all if there is something to scroll. Fix calculation of scrolled-in area. * vcons-refresh.c (cons_vcons_refresh): Take VCONS->state.screen.cur_line modulo VCONS->state.screen.lines. --- hurd/ChangeLog | 4 ++++ hurd/console.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/ChangeLog b/hurd/ChangeLog index 00de9a94..81f7d89a 100644 --- a/hurd/ChangeLog +++ b/hurd/ChangeLog @@ -1,3 +1,7 @@ +2002-08-28 Marcus Brinkmann + + * console.h (struct cons_display): Fix comment on CUR_LINE. + 2002-08-22 Marcus Brinkmann * console.h: Move here from ../console/. diff --git a/hurd/console.h b/hurd/console.h index a6728a26..27ddeeb2 100644 --- a/hurd/console.h +++ b/hurd/console.h @@ -85,7 +85,9 @@ struct cons_display { uint32_t width; /* Width of screen matrix. */ uint32_t lines; /* Length of whole matrix. */ - uint32_t cur_line; /* Beginning of visible area. This is only + uint32_t cur_line; /* Virtual start of visible area. Needs to be + taken module LINES to get the real start of + visible area in the matrix. This is only ever increased by the server, so clients can optimize scrolling. */ uint32_t scr_lines; /* Number of lines in scrollback buffer -- cgit v1.2.3