aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-24 16:43:08 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-24 16:43:08 +0000
commit3e752b0491df868a89f370a136a0edb94c5081f5 (patch)
tree9a0751f17bcf9158492e9a5a9bcbca6ddff74397 /gdb/tui/tui.c
parentc7037be10d946a1e11e3e30d7fc82656fa17aa93 (diff)
downloadbinutils-3e752b0491df868a89f370a136a0edb94c5081f5.zip
binutils-3e752b0491df868a89f370a136a0edb94c5081f5.tar.gz
binutils-3e752b0491df868a89f370a136a0edb94c5081f5.tar.bz2
* tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
is the size of command window. (tuiResizeAll): Call it instead of init_page_info. * tui.c (tui_enable): Call it to resize to TUI command window. (tui_disable): Likewise for plain screen.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 33232a5..8ead02f 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -262,6 +262,7 @@ tui_enable (void)
tui_version = 1;
tui_active = 1;
refresh ();
+ tui_update_gdb_sizes ();
}
/* Leave the tui mode.
@@ -286,6 +287,7 @@ tui_disable (void)
tui_version = 0;
tui_active = 0;
+ tui_update_gdb_sizes ();
}
/* Wrapper on top of free() to ensure that input address