This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Use clearok when refreshing TUI screen
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH]: Use clearok when refreshing TUI screen
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Date: Sat, 21 Jul 2001 23:02:40 +0200
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++)
{