1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)stty.h 8.1 (Berkeley) 05/31/93 8 */ 9 10 #include <sys/ioctl.h> 11 #include <termios.h> 12 13 struct info { 14 int fd; /* file descriptor */ 15 int ldisc; /* line discipline */ 16 int off; /* turn off */ 17 int set; /* need set */ 18 int wset; /* need window set */ 19 char *arg; /* argument */ 20 struct termios t; /* terminal info */ 21 struct winsize win; /* window info */ 22 }; 23 24 struct cchar { 25 char *name; 26 int sub; 27 u_char def; 28 }; 29 30 enum FMT { NOTSET, GFLAG, BSD, POSIX }; 31 32 #define LINELENGTH 72 33