[PATCH]: Use clearok when refreshing TUI screen

Stephane Carrez Stephane.Carrez@worldnet.fr
Sat Jul 21 13:58:00 GMT 2001


Hi!

When using ^L key to force a refresh, the window was not redraw completely.
Curses optimizes and only redraw the parts that have changed.  It is
necessary to tell curses the screen is garbled.  This is done with
clearok.  I've committed this patch.

	Stephane

2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

	* tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
Index: tuiWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiWin.c,v
retrieving revision 1.13
diff -u -p -r1.13 tuiWin.c
--- tuiWin.c	2001/07/21 19:44:38	1.13
+++ tuiWin.c	2001/07/21 20:48:14
@@ -558,6 +558,7 @@ tuiRefreshAll (void)
 {
   TuiWinType type;
 
+  clearok (curscr, TRUE);
   refreshAll (winList);
   for (type = SRC_WIN; type < MAX_MAJOR_WINDOWS; type++)
     {


More information about the Gdb-patches mailing list