* tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
tui_term_height() to restore the terminal size when leaving the TUI mode.
This commit is contained in:
parent
c3d0b56edf
commit
fddb59b729
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
|
* tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
|
||||||
|
tui_term_height() to restore the terminal size when leaving the
|
||||||
|
TUI mode.
|
||||||
|
|
||||||
2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
|
2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
* m68hc11-tdep.c (m68hc11_pseudo_register_write): Use gdb_byte
|
* m68hc11-tdep.c (m68hc11_pseudo_register_write): Use gdb_byte
|
||||||
|
|
|
@ -450,15 +450,13 @@ void
|
||||||
tui_update_gdb_sizes (void)
|
tui_update_gdb_sizes (void)
|
||||||
{
|
{
|
||||||
char cmd[50];
|
char cmd[50];
|
||||||
int screenheight, screenwidth;
|
|
||||||
|
|
||||||
rl_get_screen_size (&screenheight, &screenwidth);
|
|
||||||
/* Set to TUI command window dimension or use readline values. */
|
/* Set to TUI command window dimension or use readline values. */
|
||||||
sprintf (cmd, "set width %d",
|
sprintf (cmd, "set width %d",
|
||||||
tui_active ? TUI_CMD_WIN->generic.width : screenwidth);
|
tui_active ? TUI_CMD_WIN->generic.width : tui_term_width());
|
||||||
execute_command (cmd, 0);
|
execute_command (cmd, 0);
|
||||||
sprintf (cmd, "set height %d",
|
sprintf (cmd, "set height %d",
|
||||||
tui_active ? TUI_CMD_WIN->generic.height : screenheight);
|
tui_active ? TUI_CMD_WIN->generic.height : tui_term_height());
|
||||||
execute_command (cmd, 0);
|
execute_command (cmd, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue