At 11:02 on 11/21/2000 PST, Josh Wilmes <[EMAIL PROTECTED]> wrote:

> It does look it it goofs up if the terminal is wider than 80 columns 
> though- is that perhaps your problem?
> 
> I can probably fix this bug tonight (hopefully).
> 
> --Josh

Here's a patch:

Index: user/plugins/bochs/gui/curses.cc
===================================================================
RCS file: /cvsroot-plex86/plex86/user/plugins/bochs/gui/curses.cc,v
retrieving revision 1.4
diff -u -r1.4 curses.cc
--- user/plugins/bochs/gui/curses.cc    2000/11/21 19:35:10     1.4
+++ user/plugins/bochs/gui/curses.cc    2000/11/22 05:33:59
@@ -274,8 +274,7 @@
     return;
 
   if (key == 0x0C) { /* control L - refresh screen */
-    clear();
-    refresh();      
+    redrawwin(stdscr);    
 
     return;  /* for now, we'll trap the control-l.  Perhaps later we will
                want to pass it through to the guest.. if so, just remove
@@ -399,7 +398,8 @@
 
   move(0,0);
 
-  for (unsigned int i=0; i<rows; i++)
+  for (unsigned int i=0; i<rows; i++) {    
+    move(i, 0);
     for (unsigned int j=0; j<80; j++) {
       chtype c = new_text[(i*80+j)*2];
       char style = new_text[(i*80+j)*2 + 1];      
@@ -423,7 +423,8 @@
 
       addch(c);
     }
-
+  }
+  
   move(cursor_y, cursor_x);
 }
 


Reply via email to