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 473c0fdbc249aa2185bc6aaa984e6bcdf253b3cd..8368c07ef97df83c77404d9d5901d73e7da4bb4d 100644 (file)
@@ -1,3 +1,8 @@
+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
index b48bf3ef59ff62bc108b738bc39cb3b61bc1d246..c12f036d501896cab5bfe4e550ecfd4e3a4b4095 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];