From c366c1f032f28dd7747ecc148dcec7419f42ab94 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 16 Mar 2012 18:22:24 +0000 Subject: [PATCH] 2012-03-16 Chris January * tui-tui.win.c (tui_resize_all): Use erase and clearok instead of clear. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-win.c | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 473c0fdbc24..8368c07ef97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-16 Chris January + + * tui-tui.win.c (tui_resize_all): Use erase and clearok instead + of clear. + 2012-03-16 Chris January * source.c (add_path): Use memmove instead of strcpy because the diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index b48bf3ef59f..c12f036d501 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]; -- 2.30.2