summaryrefslogtreecommitdiff
path: root/term/users.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-06-25 15:46:29 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-06-25 15:46:29 +0000
commit8856517683eeb5bf6f213b6322e429d54fa2db76 (patch)
tree630330fa85431dcc36c0b56feacb11ce8b4f8784 /term/users.c
parent536cecf4f43ba2474d6bf576eb787ceb8a731e48 (diff)
2002-06-25 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'term/users.c')
-rw-r--r--term/users.c3
1 files changed, 3 insertions, 0 deletions
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);