added window size support
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 4 Jan 1985 00:39:47 +0000 (16:39 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Fri, 4 Jan 1985 00:39:47 +0000 (16:39 -0800)
SCCS-vsn: sys/sys/ioctl.h 6.6

usr/src/sys/sys/ioctl.h

index 327f158..e77d7e8 100644 (file)
@@ -1,4 +1,4 @@
-/*     ioctl.h 6.6     84/12/31        */
+/*     ioctl.h 6.6     85/01/03        */
 /*
  * Ioctl definitions
  */
 /*
  * Ioctl definitions
  */
@@ -44,6 +44,14 @@ struct sgttyb {
 };
 #endif
 
 };
 #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,
 #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        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 */
 
 #define        OTTYDISC        0               /* old, v7 std tty driver */
 #define        NETLDISC        1               /* line discip for berk net */