stty.h revision 1.5.2.2 1 1.5.2.2 mycroft /*-
2 1.5.2.2 mycroft * Copyright (c) 1991, 1993
3 1.5.2.2 mycroft * The Regents of the University of California. All rights reserved.
4 1.5.2.2 mycroft *
5 1.5.2.2 mycroft * Redistribution and use in source and binary forms, with or without
6 1.5.2.2 mycroft * modification, are permitted provided that the following conditions
7 1.5.2.2 mycroft * are met:
8 1.5.2.2 mycroft * 1. Redistributions of source code must retain the above copyright
9 1.5.2.2 mycroft * notice, this list of conditions and the following disclaimer.
10 1.5.2.2 mycroft * 2. Redistributions in binary form must reproduce the above copyright
11 1.5.2.2 mycroft * notice, this list of conditions and the following disclaimer in the
12 1.5.2.2 mycroft * documentation and/or other materials provided with the distribution.
13 1.5.2.2 mycroft * 3. All advertising materials mentioning features or use of this software
14 1.5.2.2 mycroft * must display the following acknowledgement:
15 1.5.2.2 mycroft * This product includes software developed by the University of
16 1.5.2.2 mycroft * California, Berkeley and its contributors.
17 1.5.2.2 mycroft * 4. Neither the name of the University nor the names of its contributors
18 1.5.2.2 mycroft * may be used to endorse or promote products derived from this software
19 1.5.2.2 mycroft * without specific prior written permission.
20 1.5.2.2 mycroft *
21 1.5.2.2 mycroft * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 1.5.2.2 mycroft * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 1.5.2.2 mycroft * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 1.5.2.2 mycroft * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 1.5.2.2 mycroft * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 1.5.2.2 mycroft * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 1.5.2.2 mycroft * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 1.5.2.2 mycroft * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 1.5.2.2 mycroft * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 1.5.2.2 mycroft * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 1.5.2.2 mycroft * SUCH DAMAGE.
32 1.5.2.2 mycroft *
33 1.5.2.2 mycroft * from: @(#)stty.h 8.1 (Berkeley) 5/31/93
34 1.5.2.2 mycroft * $Id: stty.h,v 1.5.2.2 1994/09/20 04:52:13 mycroft Exp $
35 1.5.2.2 mycroft */
36 1.5.2.2 mycroft
37 1.5.2.2 mycroft #include <sys/ioctl.h>
38 1.5.2.2 mycroft #include <termios.h>
39 1.5.2.2 mycroft
40 1.5.2.2 mycroft struct info {
41 1.5.2.2 mycroft int fd; /* file descriptor */
42 1.5.2.2 mycroft int ldisc; /* line discipline */
43 1.5.2.2 mycroft int off; /* turn off */
44 1.5.2.2 mycroft int set; /* need set */
45 1.5.2.2 mycroft int wset; /* need window set */
46 1.5.2.2 mycroft char *arg; /* argument */
47 1.5.2.2 mycroft struct termios t; /* terminal info */
48 1.5.2.2 mycroft struct winsize win; /* window info */
49 1.5.2.2 mycroft };
50 1.5.2.2 mycroft
51 1.5.2.2 mycroft struct cchar {
52 1.5.2.2 mycroft char *name;
53 1.5.2.2 mycroft int sub;
54 1.5.2.2 mycroft u_char def;
55 1.5.2.2 mycroft };
56 1.5.2.2 mycroft
57 1.5.2.2 mycroft enum FMT { NOTSET, GFLAG, BSD, POSIX };
58 1.5.2.2 mycroft
59 1.5.2.2 mycroft #define LINELENGTH 72
60