Debian Codegraph @

ttystate.h

raw
1 /**************************************************************************
2 * This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is *
3 * provided by Jonathan and Jovehacks without charge and without *
4 * warranty. You may copy, modify, and/or distribute JOVE, provided that *
5 * this notice is included in all the source files and documentation. *
6 **************************************************************************/
7
8 #ifdef UNIX
9
10 /* Various tty state structures.
11 * Each is an array, subscripted by one of "NO" or "YES".
12 * YES is set suitably for JOVE.
13 * NO is reset back to initial state.
14 */
15
16 #include <termios.h>
17 extern struct termios sg[2];
18
19 /* JOVE needs to know about tab expansion to infer whether it should
20 * use tabs to optimize output (jove.c).
21 * It also must be able to turn tab expansion off for a pty (iproc.c).
22 * The "normal" way of signifying tab expansion in a termio or termios
23 * struct is to set the bits in c_oflag masked by TABDLY to TAB3.
24 * Instead, some systems (eg. 386BSD) have a single bit named OXTABS,
25 * from which we synthesize fake definitions of TABDLY and TAB3.
26 * Some other systems have no bit, so we must presume that tabs don't
27 * work and that we needn't change the setting.
28 */
29 # ifndef TABDLY
30 # ifdef OXTABS
31 # define TABDLY OXTABS
32 # define TAB3 TABDLY
33 # else
34 # define TABDLY 0 /* tab expansion is unknown and uncontrollable */
35 # endif
36 # endif
37
38 # ifdef USE_BSDTTYINCLUDE
39 # include <bsdtty.h>
40 # ifdef TIOCSLTC
41 # define USE_TIOCSLTC 1
42 # endif
43 # endif
44
45 # ifdef USE_TIOCSLTC
46 extern struct ltchars ls[2];
47 # endif /* USE_TIOCSLTC */
48
49 /* to get a definition for TIOCGWINSZ, we include <sys/ioctl.h> */
50 # include <sys/ioctl.h>
51
52 /* Variables: */
53
54 extern jbool OKXonXoff; /* VAR: XON/XOFF can be used as ordinary chars */
55 extern ZXchar IntChar; /* VAR: ttysetattr sets this to generate QUIT */
56
57 #endif /* UNIX */