2012-03-16 Chris January <chris.january@allinea.com>
authorTom Tromey <tromey@redhat.com>
Fri, 16 Mar 2012 18:22:24 +0000 (18:22 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 16 Mar 2012 18:22:24 +0000 (18:22 +0000)
* tui-tui.win.c (tui_resize_all): Use erase and clearok instead
of clear.

gdb/ChangeLog
gdb/tui/tui-win.c

index 473c0fd..8368c07 100644 (file)
@@ -1,5 +1,10 @@
 2012-03-16  Chris January  <chris.january@allinea.com>
 
+       * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
+       of clear.
+
+2012-03-16  Chris January  <chris.january@allinea.com>
+
        * source.c (add_path): Use memmove instead of strcpy because the
        strings overlap.
 
index b48bf3e..c12f036 100644 (file)
@@ -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];