* fhandler.h (fhandler_tty_master::set_winsize): Declare new function.

* fhandler_console.cc (fhandler_console::send_winch_maybe): If appropriate,
call tty master function to handle screen size change.
* fhandler_tty.cc (fhandler_tty_master::set_winsize): New function.
(fhandler_tty_master::init): Call set_winsize to set initial screen size.
This commit is contained in:
Christopher Faylor
2002-12-27 05:31:30 +00:00
parent 3bfed277d6
commit 66dcfc4498
4 changed files with 30 additions and 5 deletions

View File

@@ -948,6 +948,7 @@ class fhandler_tty_master: public fhandler_pty_master
fhandler_tty_master (int unit);
int init (int);
int init_console ();
void set_winsize (bool);
void fixup_after_fork (HANDLE parent);
void fixup_after_exec (HANDLE);
};