From 8856517683eeb5bf6f213b6322e429d54fa2db76 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 25 Jun 2002 15:46:29 +0000 Subject: 2002-06-25 Marcus Brinkmann * term.h (struct bottomhalf): New member GWINSZ. * devio.c (devio_bottom): Add new member. * ptyio.c (ptyio_bottom): Likewise. * hurdio.c (hurdio_bottom): Likewise. (hurdio_gwinsz): New function. (tioc_caps): Change type to unsigned int. (TIOC_CAP_GWINSZ): New symbol. * users.c (open_hook): Call GWINSZ of bottom layer after establishing the carrier. --- term/users.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'term/users.c') diff --git a/term/users.c b/term/users.c index ee27c855..a4e110b4 100644 --- a/term/users.c +++ b/term/users.c @@ -219,6 +219,9 @@ open_hook (struct trivfs_control *cntl, termstate = state; termflags |= TTY_OPEN; } + + if (bottom->gwinsz) + (*bottom->gwinsz) (&window_size); } mutex_unlock (&global_lock); -- cgit v1.2.3