From 22e2baa47b364fed5f49da1fe04eaf6ad374d60e Mon Sep 17 00:00:00 2001 From: Jim Bloom Date: Thu, 3 Jan 1985 16:39:47 -0800 Subject: [PATCH] added window size support SCCS-vsn: sys/sys/ioctl.h 6.6 --- usr/src/sys/sys/ioctl.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/usr/src/sys/sys/ioctl.h b/usr/src/sys/sys/ioctl.h index 327f158f35..e77d7e8fe2 100644 --- a/usr/src/sys/sys/ioctl.h +++ b/usr/src/sys/sys/ioctl.h @@ -1,4 +1,4 @@ -/* ioctl.h 6.6 84/12/31 */ +/* ioctl.h 6.6 85/01/03 */ /* * Ioctl definitions */ @@ -44,6 +44,14 @@ struct sgttyb { }; #endif +/* + * Window size structure + */ +struct winsize { + unsigned short row, col; /* character size of window */ + unsigned short xpixel, ypixel; /* pixel size of window */ +}; + #ifndef _IO /* * Ioctl's have the command encoded in the lower word, @@ -184,6 +192,8 @@ struct sgttyb { #define TIOCMBIC _IOW(t, 107, int) /* bic modem bits */ #define TIOCMGET _IOR(t, 106, int) /* get all modem bits */ #define TIOCREMOTE _IO(t, 105) /* remote input editing */ +#define TIOCGWINSZ _IOR(t, 104, struct winsize) /* get window size */ +#define TIOCSWINSZ _IOW(t, 103, struct winsize) /* set window size */ #define OTTYDISC 0 /* old, v7 std tty driver */ #define NETLDISC 1 /* line discip for berk net */ -- 2.20.1