aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-16 18:22:24 +0000
committerTom Tromey <tromey@redhat.com>2012-03-16 18:22:24 +0000
commitc366c1f032f28dd7747ecc148dcec7419f42ab94 (patch)
treeee9acc9dbdb8a68276b201337774dec654ecc05f /gdb/tui
parente16edb4530709c015a185c85c5f501552c4b41d8 (diff)
downloadgdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.zip
gdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.tar.gz
gdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.tar.bz2
2012-03-16 Chris January <chris.january@allinea.com>
* tui-tui.win.c (tui_resize_all): Use erase and clearok instead of clear.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-win.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index b48bf3e..c12f036 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -690,13 +690,16 @@ tui_resize_all (void)
if (height_diff < 0)
cmd_split_diff--;
else
- cmd_split_diff++;
- }
+ cmd_split_diff++;
+ }
/* Now adjust each window. */
- clear ();
+ /* erase + clearok are used instead of a straightforward clear as
+ AIX 5.3 does not define clear. */
+ erase ();
+ clearok (curscr, TRUE);
refresh ();
switch (cur_layout)
- {
+ {
case SRC_COMMAND:
case DISASSEM_COMMAND:
first_win = (struct tui_win_info *) (tui_source_windows ())->list[0];