(Reverting): Auto-Revert mode and Global Auto-Revert mode no longer
[emacs.git] / mac / inc / termio.h
blob3996351a79a06051a72147a11fa7e66ead069a6c
1 /* Replacement termio.h file for building GNU Emacs on the Macintosh.
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Contributed by Andrew Choi (akochoi@mac.com). */
23 #ifndef _SYS_TERMIO_H
24 #define _SYS_TERMIO_H
26 typedef unsigned char cc_t;
27 typedef unsigned short tcflag_t;
29 #define NCCS 32
31 struct termio {
32 tcflag_t c_iflag; /* input modes */
33 tcflag_t c_oflag; /* output modes */
34 tcflag_t c_cflag; /* control modes */
35 tcflag_t c_lflag; /* local modes */
36 cc_t c_cc[NCCS]; /* control chars */
39 /* c_cc subscript names */
40 #define VINTR 1
41 #define VQUIT 2
42 #define VERASE 3
43 #define VTIME 4
44 #define VMIN 5
46 /* c_iflag fields */
47 #define IGNBRK 0x1 /* ignore break condition */
48 #define ICRNL 0x2 /* map CR to NL on input */
49 #define IXON 0x4 /* enable start/stop output control */
51 /* c_oflag fields */
52 #define ONLCR 0x1 /* map CR to NL on output */
53 #define TABDLY 0x2 /* horizontal tab delays */
54 #define TAB3 0x4 /* expand tab to spaces */
56 /* c_cflag fields */
57 #define CBAUD 0x1
58 #define B9600 0x2
60 /* c_lflag fields */
61 #define ISIG 0x1 /* enable signals */
62 #define ICANON 0x2 /* canonical input (erase and kill processing) */
63 #define ECHO 0x3 /* enable echo */
65 #define TCSETAW 4
66 #define TCSETAF 5
68 #endif /* _SYS_TERMIO_H */
70 /* arch-tag: 0e7a100d-2ac0-412e-9dc4-52e39ef43e14
71 (do not change this comment) */