Mercurial > emacs
annotate src/systty.h @ 3162:358923f49f13
* s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 27 May 1993 03:05:02 +0000 |
parents | 84825e357019 |
children | f26d9c469926 |
rev | line source |
---|---|
1597 | 1 /* systty.h - System-dependent definitions for terminals. |
2961 | 2 Copyright (C) 1993 Free Software Foundation, Inc. |
578 | 3 |
4 This file is part of GNU Emacs. | |
5 | |
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 1, or (at your option) | |
9 any later version. | |
10 | |
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. | |
15 | |
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, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
20 #ifdef HAVE_TERMIOS |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
21 #define HAVE_TCATTR |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
22 #endif |
578 | 23 |
24 /* Include the proper files. */ | |
25 #ifdef HAVE_TERMIO | |
2912
32106dbf6d01
Some changes from Michael K. Johnson for Linux.
Jim Blandy <jimb@redhat.com>
parents:
2873
diff
changeset
|
26 #ifdef __DGUX |
32106dbf6d01
Some changes from Michael K. Johnson for Linux.
Jim Blandy <jimb@redhat.com>
parents:
2873
diff
changeset
|
27 #include <sys/ioctl.h> |
32106dbf6d01
Some changes from Michael K. Johnson for Linux.
Jim Blandy <jimb@redhat.com>
parents:
2873
diff
changeset
|
28 #endif |
578 | 29 #include <termio.h> |
30 #include <fcntl.h> | |
31 #else | |
32 #ifdef HAVE_TERMIOS | |
33 #include <termio.h> | |
34 #include <termios.h> | |
1929
8ca19160362b
* systty.h [HAVE_TERMIOS]: Include fcntl.h.
Jim Blandy <jimb@redhat.com>
parents:
1597
diff
changeset
|
35 #include <fcntl.h> |
578 | 36 #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ |
37 #ifndef VMS | |
38 #include <sgtty.h> | |
1597 | 39 #else /* VMS */ |
40 #include <descrip.h> | |
41 static struct iosb | |
42 { | |
43 short status; | |
44 short offset; | |
45 short termlen; | |
46 short term; | |
47 } input_iosb; | |
48 | |
49 extern int waiting_for_ast; | |
50 extern int stop_input; | |
2264
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
51 #if 0 /* VAX C doeasn't understand initializing declarations */ |
1597 | 52 extern int input_ef = 0; |
53 extern int timer_ef = 0; | |
54 extern int process_ef = 0; | |
2264
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
55 #else |
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
56 extern int input_ef; |
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
57 extern int timer_ef; |
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
58 extern int process_ef; |
87934d212841
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
Jim Blandy <jimb@redhat.com>
parents:
2095
diff
changeset
|
59 #endif |
1597 | 60 extern int input_eflist; |
61 extern int timer_eflist; | |
62 | |
63 static $DESCRIPTOR (input_dsc, "TT"); | |
64 static int terminator_mask[2] = { 0, 0 }; | |
65 | |
66 static struct sensemode { | |
67 short status; | |
68 unsigned char xmit_baud; | |
69 unsigned char rcv_baud; | |
70 unsigned char crfill; | |
71 unsigned char lffill; | |
72 unsigned char parity; | |
73 unsigned char unused; | |
74 char class; | |
75 char type; | |
76 short scr_wid; | |
77 unsigned long tt_char : 24, scr_len : 8; | |
78 unsigned long tt2_char; | |
79 } sensemode_iosb; | |
80 #endif /* VMS */ | |
578 | 81 #endif /* not HAVE_TERMIOS */ |
82 #endif /* not HAVE_TERMIO */ | |
83 | |
621 | 84 #ifdef AIX |
85 /* Get files for keyboard remapping */ | |
86 #define HFNKEYS 2 | |
87 #include <sys/hft.h> | |
88 #include <sys/devinfo.h> | |
89 #endif | |
90 | |
91 /* Get rid of LLITOUT in 4.1, since it is said to stimulate kernel bugs. */ | |
92 #ifdef BSD4_1 | |
93 #undef LLITOUT | |
94 #define LLITOUT 0 | |
95 #endif /* 4.1 */ | |
96 | |
97 #ifdef NEED_BSDTTY | |
98 #include <sys/bsdtty.h> | |
99 #endif | |
100 | |
101 #if defined (HPUX) && defined (HAVE_PTYS) | |
102 #include <sys/ptyio.h> | |
103 #endif | |
104 | |
105 #ifdef AIX | |
106 #include <sys/pty.h> | |
107 #include <unistd.h> | |
108 #endif /* AIX */ | |
109 | |
110 #ifdef SYSV_PTYS | |
2943
be86b41a0661
* systty.h [SYSV_PTYS]: #include <sys/types.h>. Francesco
Jim Blandy <jimb@redhat.com>
parents:
2917
diff
changeset
|
111 #include <sys/types.h> |
621 | 112 #include <sys/tty.h> |
648 | 113 #ifdef titan |
114 #include <sys/ttyhw.h> | |
115 #include <sys/stream.h> | |
116 #endif | |
2414
9994dd2e75c9
[NO_PTY_H]: Don't include pty.h.
Richard M. Stallman <rms@gnu.org>
parents:
2264
diff
changeset
|
117 #ifndef NO_PTY_H |
621 | 118 #include <sys/pty.h> |
119 #endif | |
2414
9994dd2e75c9
[NO_PTY_H]: Don't include pty.h.
Richard M. Stallman <rms@gnu.org>
parents:
2264
diff
changeset
|
120 #endif |
621 | 121 |
122 /* saka@pfu.fujitsu.co.JP writes: | |
123 FASYNC defined in this file. But, FASYNC don't working. | |
124 so no problem, because unrequest_sigio only need. */ | |
125 #if defined (pfa) | |
126 #include <sys/file.h> | |
127 #endif | |
128 | |
578 | 129 |
130 /* Special cases - inhibiting the use of certain features. */ | |
131 | |
132 #ifdef APOLLO | |
133 #undef TIOCSTART | |
134 #endif | |
135 | |
648 | 136 #ifdef XENIX |
137 #undef TIOCGETC /* Avoid confusing some conditionals that test this. */ | |
138 #endif | |
139 | |
578 | 140 #ifdef BROKEN_TIOCGETC |
141 #undef TIOCGETC /* Avoid confusing some conditionals that test this. */ | |
142 #endif | |
143 | |
144 /* UNIPLUS systems may have FIONREAD. */ | |
145 #ifdef UNIPLUS | |
146 #include <sys.ioctl.h> | |
147 #endif | |
148 | |
149 /* Allow m- file to inhibit use of FIONREAD. */ | |
150 #ifdef BROKEN_FIONREAD | |
151 #undef FIONREAD | |
152 #undef ASYNC | |
153 #endif | |
154 | |
155 /* Interupt input is not used if there is no FIONREAD. */ | |
156 #ifndef FIONREAD | |
157 #undef SIGIO | |
158 #endif | |
159 | |
3157
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
160 /* On TERMIOS systems, the tcmumbleattr calls take care of these |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
161 parameters, and it's a bad idea to use them (on AIX, it makes the |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
162 tty hang for a long time). |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
163 #if defined (TIOCGLTC) && !defined (HAVE_TERMIOS) |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
164 #define HAVE_LTCHARS |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
165 #endif |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
166 |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
167 #if defined (TIOCGETC) && !defined (HAVE_TERMIOS) |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
168 #define HAVE_TCHARS |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
169 #endif |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
170 |
578 | 171 |
1101 | 172 /* Try to establish the correct character to disable terminal functions |
173 in a system-independent manner. Note that USG (at least) define | |
174 _POSIX_VDISABLE as 0! */ | |
175 | |
176 #ifdef _POSIX_VDISABLE | |
177 #define CDISABLE _POSIX_VDISABLE | |
178 #else /* not _POSIX_VDISABLE */ | |
179 #ifdef CDEL | |
180 #define CDISABLE CDEL | |
181 #else /* not CDEL */ | |
182 #define CDISABLE 255 | |
183 #endif /* not CDEL */ | |
184 #endif /* not _POSIX_VDISABLE */ | |
185 | |
578 | 186 /* Get the number of characters queued for output. */ |
187 | |
188 /* EMACS_OUTQSIZE(FD, int *SIZE) stores the number of characters | |
189 queued for output to the terminal FD in *SIZE, if FD is a tty. | |
190 Returns -1 if there was an error (i.e. FD is not a tty), 0 | |
191 otherwise. */ | |
192 #ifdef TIOCOUTQ | |
193 #define EMACS_OUTQSIZE(fd, size) (ioctl ((fd), TIOCOUTQ, (size))) | |
194 #endif | |
195 | |
196 #ifdef HAVE_TERMIO | |
197 #ifdef TCOUTQ | |
198 #undef EMACS_OUTQSIZE | |
199 #define EMACS_OUTQSIZE(fd, size) (ioctl ((fd), TCOUTQ, (size))) | |
200 #endif | |
201 #endif | |
202 | |
203 | |
204 /* Manipulate a terminal's current process group. */ | |
205 | |
206 /* EMACS_HAVE_TTY_PGRP is true if we can get and set the tty's current | |
207 controlling process group. | |
208 | |
209 EMACS_GET_TTY_PGRP(int FD, int *PGID) sets *PGID the terminal FD's | |
210 current process group. Return -1 if there is an error. | |
211 | |
212 EMACS_SET_TTY_PGRP(int FD, int *PGID) sets the terminal FD's | |
213 current process group to *PGID. Return -1 if there is an error. */ | |
214 | |
648 | 215 #ifdef HPUX |
216 /* HPUX tty process group stuff doesn't work, says the anonymous voice | |
217 from the past. */ | |
218 #else | |
578 | 219 #ifdef TIOCGPGRP |
220 #define EMACS_HAVE_TTY_PGRP | |
221 #else | |
222 #ifdef HAVE_TERMIOS | |
223 #define EMACS_HAVE_TTY_PGRP | |
224 #endif | |
225 #endif | |
648 | 226 #endif |
578 | 227 |
228 #ifdef EMACS_HAVE_TTY_PGRP | |
229 | |
230 #ifdef HAVE_TERMIOS | |
231 | |
232 #define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd))) | |
2917
725698689fbd
Some more changes from Michael K. Johnson for Linux.
Jim Blandy <jimb@redhat.com>
parents:
2912
diff
changeset
|
233 #define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid))) |
578 | 234 |
235 #else | |
236 #ifdef TIOCSPGRP | |
237 | |
238 #define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGRP, (pgid))) | |
239 #define EMACS_SET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCSPGRP, (pgid))) | |
240 | |
241 #endif | |
242 #endif | |
243 | |
244 #else | |
245 | |
246 /* Just ignore this for now and hope for the best */ | |
247 #define EMACS_GET_TTY_PGRP(fd, pgid) 0 | |
999 | 248 #define EMACS_SET_TTY_PGRP(fd, pgif) 0 |
578 | 249 |
250 #endif | |
251 | |
252 | |
253 /* Manipulate a TTY's input/output processing parameters. */ | |
254 | |
255 /* struct emacs_tty is a structure used to hold the current tty | |
256 parameters. If the terminal has several structures describing its | |
257 state, for example a struct tchars, a struct sgttyb, a struct | |
258 tchars, a struct ltchars, and a struct pagechars, struct | |
259 emacs_tty should contain an element for each parameter struct | |
260 that Emacs may change. | |
261 | |
2873
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
262 EMACS_GET_TTY (int FD, struct emacs_tty *P) stores the parameters |
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
263 of the tty on FD in *P. Return zero if all's well, or -1 if we ran |
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
264 into an error we couldn't deal with. |
578 | 265 |
266 EMACS_SET_TTY (int FD, struct emacs_tty *P, int waitp) | |
267 sets the parameters of the tty on FD according to the contents of | |
268 *P. If waitp is non-zero, we wait for all queued output to be | |
269 written before making the change; otherwise, we forget any queued | |
270 input and make the change immediately. | |
2873
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
271 Return 0 if all went well, and -1 if anything failed. |
578 | 272 |
273 EMACS_TTY_TABS_OK (struct emacs_tty *P) is false iff the kernel | |
274 expands tabs to spaces upon output; in that case, there is no | |
275 advantage to using tabs over spaces. */ | |
276 | |
277 | |
278 /* For each tty parameter structure that Emacs might want to save and restore, | |
2873
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
279 - include an element for it in this structure, and |
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
280 - extend the emacs_{get,set}_tty functions in sysdep.c to deal with the |
f1cd54cf1b67
* sysdep.c (reset_sys_modes): Test the return value of
Jim Blandy <jimb@redhat.com>
parents:
2658
diff
changeset
|
281 new members. */ |
578 | 282 |
283 struct emacs_tty { | |
284 | |
285 /* There is always one of the following elements, so there is no need | |
286 for dummy get and set definitions. */ | |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
287 #ifdef HAVE_TCATTR |
578 | 288 struct termios main; |
289 #else | |
290 #ifdef HAVE_TERMIO | |
291 struct termio main; | |
292 #else | |
293 #ifdef VMS | |
294 struct sensemode main; | |
295 #else | |
296 struct sgttyb main; | |
297 #endif | |
298 #endif | |
299 #endif | |
3157
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
300 |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
301 /* If we have TERMIOS, we don't need to do this - they're taken care of |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
302 by the tc*attr calls. */ |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
303 #ifndef HAVE_TERMIOS |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
304 #ifdef HAVE_LTCHARS |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
305 struct ltchars ltchars; |
578 | 306 #endif |
3157
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
307 |
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
308 #ifdef HAVE_TCHARS |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
309 struct tchars tchars; |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
310 int lmode; |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
311 #endif |
3157
84825e357019
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
Jim Blandy <jimb@redhat.com>
parents:
2961
diff
changeset
|
312 #endif |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
313 }; |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
314 |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
315 /* Define EMACS_GET_TTY and EMACS_SET_TTY, |
2658
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
316 the macros for reading and setting parts of `struct emacs_tty'. |
578 | 317 |
2658
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
318 These got pretty unmanageable (huge macros are hard to debug), and |
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
319 finally needed some code which couldn't be done as part of an |
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
320 expression, so we moved them out to their own functions in sysdep.c. */ |
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
321 #define EMACS_GET_TTY(fd, p) (emacs_get_tty ((fd), (p))) |
8be0a57686cb
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
Jim Blandy <jimb@redhat.com>
parents:
2414
diff
changeset
|
322 #define EMACS_SET_TTY(fd, p, waitp) (emacs_set_tty ((fd), (p), (waitp))) |
578 | 323 |
2095
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
324 |
139f87bcbaf1
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
Richard M. Stallman <rms@gnu.org>
parents:
1929
diff
changeset
|
325 /* Define EMACS_TTY_TABS_OK. */ |
578 | 326 |
327 #ifdef HAVE_TERMIOS | |
328 | |
329 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) | |
330 | |
331 #else /* not def HAVE_TERMIOS */ | |
332 #ifdef HAVE_TERMIO | |
333 | |
334 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) | |
335 | |
336 #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ | |
337 #ifdef VMS | |
338 | |
339 #define EMACS_TTY_TABS_OK(p) (((p)->main.tt_char & TT$M_MECHTAB) != 0) | |
340 | |
341 #else | |
342 | |
343 #define EMACS_TTY_TABS_OK(p) (((p)->main.sg_flags & XTABS) != XTABS) | |
344 | |
345 #endif /* not def VMS */ | |
346 #endif /* not def HAVE_TERMIO */ | |
347 #endif /* not def HAVE_TERMIOS */ |