summaryrefslogtreecommitdiff
path: root/term/term.h
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/term.h
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/term.h')
-rw-r--r--term/term.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/term/term.h b/term/term.h
index c89e4425..db2be09c 100644
--- a/term/term.h
+++ b/term/term.h
@@ -135,11 +135,16 @@ uid_t term_group;
mode_t term_mode;
+/* XXX Including <sys/ioctl.h> or <hurd/ioctl_types.h> leads to "ECHO
+ undeclared" errors in munge.c or users.c. */
+struct winsize;
+
/* Functions a bottom half defines */
struct bottomhalf
{
enum term_bottom_type type;
error_t (*init) (void);
+ error_t (*gwinsz) (struct winsize *size);
error_t (*start_output) (void);
error_t (*set_break) (void);
error_t (*clear_break) (void);