cleanups. return when printing NULL commands
[unix-history] / usr / src / bin / stty / stty.h
CommitLineData
7ea90dbf
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
3ac03562 7 * @(#)stty.h 5.3 (Berkeley) %G%
7ea90dbf
KB
8 */
9
18eb7726
KB
10#include <sys/ioctl.h>
11#include <termios.h>
12
13struct 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
7ea90dbf
KB
24struct cchar {
25 char *name;
26 int sub;
27 u_char def;
28};
29
30enum FMT { NOTSET, GFLAG, BSD, POSIX };
31
32#define LINELENGTH 72