* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll region

if size changes.
This commit is contained in:
Christopher Faylor 2003-01-25 01:17:51 +00:00
parent 81632e9e55
commit 45dbfc2611
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-01-24 Christopher Faylor <cgf@redhat.com>
* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset
scroll region if size changes.
2003-01-24 Pierre Humblet <pierre.humblet@ieee.org> 2003-01-24 Pierre Humblet <pierre.humblet@ieee.org>
Jason Tishler <jason@tishler.net> Jason Tishler <jason@tishler.net>

View File

@ -215,6 +215,8 @@ fhandler_console::send_winch_maybe ()
if (y != dev_state->info.dwWinSize.Y || x != dev_state->info.dwWinSize.X) if (y != dev_state->info.dwWinSize.Y || x != dev_state->info.dwWinSize.X)
{ {
extern fhandler_tty_master *tty_master; extern fhandler_tty_master *tty_master;
dev_state->scroll_region.Top = 0;
dev_state->scroll_region.Bottom = -1;
if (tty_master) if (tty_master)
tty_master->set_winsize (true); tty_master->set_winsize (true);
else else