summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-08-28 17:28:36 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-08-28 17:28:36 +0000
commit513afcf4f8cd67275bad59251d1ee2a845d0ddca (patch)
tree50ba58bd26fca25385be71fb144daadc287063b9 /hurd
parentd14e2936fd203532ed19471c504b5b43adecf74b (diff)
hurd/
2002-08-28 Marcus Brinkmann <marcus@gnu.org> * console.h (struct cons_display): Fix comment on CUR_LINE. console/ 2002-08-28 Marcus Brinkmann <marcus@gnu.org> * 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 <marcus@gnu.org> * 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.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/ChangeLog4
-rw-r--r--hurd/console.h4
2 files changed, 7 insertions, 1 deletions
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 <marcus@gnu.org>
+
+ * console.h (struct cons_display): Fix comment on CUR_LINE.
+
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* 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