commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hurd/libcons ChangeLog cons.h vcons-refresh.c


From: Marcus Brinkmann
Subject: hurd/libcons ChangeLog cons.h vcons-refresh.c
Date: Fri, 15 Aug 2003 17:04:10 -0400

CVSROOT:        /cvsroot/hurd
Module name:    hurd
Branch:         
Changes by:     Marcus Brinkmann <address@hidden>       03/08/15 17:04:10

Modified files:
        libcons        : ChangeLog cons.h vcons-refresh.c 

Log message:
        2003-08-11  Marco Gerards  <address@hidden>
        
        * cons.h (cons_vcons_set_dimension): New prototype.
        * vcons-refresh.c (cons_vcons_refresh): Call
        cons_vcons_set_dimension instead of cons_vcons_clear.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libcons/ChangeLog.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libcons/cons.h.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/libcons/vcons-refresh.c.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: hurd/libcons/ChangeLog
diff -u hurd/libcons/ChangeLog:1.14 hurd/libcons/ChangeLog:1.15
--- hurd/libcons/ChangeLog:1.14 Sat Aug  2 17:43:46 2003
+++ hurd/libcons/ChangeLog      Fri Aug 15 17:04:10 2003
@@ -1,3 +1,9 @@
+2003-08-11  Marco Gerards  <address@hidden>
+
+       * cons.h (cons_vcons_set_dimension): New prototype.
+       * vcons-refresh.c (cons_vcons_refresh): Call
+       cons_vcons_set_dimension instead of cons_vcons_clear.
+
 2003-08-01  Marco Gerards  <address@hidden>
 
        * opts-std-startup.c: Include <string.h>.
Index: hurd/libcons/cons.h
diff -u hurd/libcons/cons.h:1.6 hurd/libcons/cons.h:1.7
--- hurd/libcons/cons.h:1.6     Tue Sep 17 07:47:15 2002
+++ hurd/libcons/cons.h Fri Aug 15 17:04:10 2003
@@ -1,5 +1,5 @@
 /* cons.h - Definitions for cons helper and callback functions.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Written by Marcus Brinkmann.
 
    This file is part of the GNU Hurd.
@@ -230,6 +230,14 @@
 /* Enter SIZE bytes from the buffer BUF into the virtual console
    VCONS.  */
 error_t cons_vcons_input (vcons_t vcons, char *buf, size_t size);
+
+/* The user must define this function.  Clear the existing screen
+   matrix and set the size of the screen matrix to the dimension COL x
+   ROW.  This call will be immediately followed by a call to
+   cons_vcons_write that covers the whole new screen matrix.  */
+error_t cons_vcons_set_dimension (vcons_t vcons,
+                                 uint32_t col, uint32_t row);
+);
 
 typedef enum
   {
Index: hurd/libcons/vcons-refresh.c
diff -u hurd/libcons/vcons-refresh.c:1.5 hurd/libcons/vcons-refresh.c:1.6
--- hurd/libcons/vcons-refresh.c:1.5    Sat Sep 21 22:05:47 2002
+++ hurd/libcons/vcons-refresh.c        Fri Aug 15 17:04:10 2003
@@ -1,5 +1,5 @@
 /* vcons-refresh.c - Redraw a virtual console.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Written by Marcus Brinkmann.
 
    This file is part of the GNU Hurd.
@@ -41,8 +41,8 @@
   if (vcons->state.screen.scr_lines < vcons->scrolling)
     vcons->scrolling = vcons->scrolling;
 
-  cons_vcons_clear (vcons, vcons->state.screen.width
-                   * vcons->state.screen.height, 0, 0);
+  cons_vcons_set_dimension (vcons, vcons->state.screen.width,
+                           vcons->state.screen.height);
 
   if (vcons->state.screen.cur_line >= vcons->scrolling)
     start = vcons->state.screen.cur_line - vcons->scrolling;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]