This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Use clearok when refreshing TUI screen


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++)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]