diff options
author | mp <mp@FreeBSD.org> | 2002-07-24 16:23:10 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2002-07-24 16:23:10 +0000 |
commit | f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310 (patch) | |
tree | 22260a5dd95c2612c939ecc9dc8166877f07d1d1 /contrib/tcsh/ed.term.h | |
parent | e8a1e84ed0d35851468ed9942dd757f1874d0907 (diff) | |
download | FreeBSD-src-f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310.zip FreeBSD-src-f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310.tar.gz |
Import of tcsh-6.12.00
Diffstat (limited to 'contrib/tcsh/ed.term.h')
-rw-r--r-- | contrib/tcsh/ed.term.h | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/contrib/tcsh/ed.term.h b/contrib/tcsh/ed.term.h index bcd000b..f868213 100644 --- a/contrib/tcsh/ed.term.h +++ b/contrib/tcsh/ed.term.h @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/ed.term.h,v 1.13 1996/09/24 16:57:20 christos Exp $ */ +/* $Header: /src/pub/tcsh/ed.term.h,v 1.16 2002/07/06 22:28:13 christos Exp $ */ /* * ed.term.h: Local terminal header */ @@ -14,11 +14,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -454,9 +450,10 @@ /* * fix for hpux10 inconsistency: it has VWERASE, but TIOCSLTC returns * EINVAL if one tries to change it + * Also for RH6.2 on the alpha, defined TIOCGLTC, but does not have + * struct ltchars */ -#if defined(hpux) && defined(VSUSP) && defined(VDSUSP) && defined(VWERASE) && d -efined(VLNEXT) +#if (defined(hpux) && defined(VSUSP) && defined(VDSUSP) && defined(VWERASE) && defined(VLNEXT)) || defined(__linux__) # undef TIOCGLTC /* not really needed */ # undef TIOCSLTC #endif @@ -489,4 +486,37 @@ efined(VLNEXT) #define C_NCC 25 #define C_SH(A) (1 << (A)) +/* + * Terminal dependend data structures + */ +typedef struct { +#ifdef WINNT_NATIVE + int dummy; +#else /* !WINNT_NATIVE */ +# if defined(POSIX) || defined(TERMIO) +# ifdef POSIX + struct termios d_t; +# else + struct termio d_t; +# endif /* POSIX */ +# else /* SGTTY */ +# ifdef TIOCGETP + struct sgttyb d_t; +# endif /* TIOCGETP */ +# ifdef TIOCGETC + struct tchars d_tc; +# endif /* TIOCGETC */ +# ifdef TIOCGPAGE + struct ttypagestat d_pc; +# endif /* TIOCGPAGE */ +# ifdef TIOCLGET + int d_lb; +# endif /* TIOCLGET */ +# endif /* POSIX || TERMIO */ +# ifdef TIOCGLTC + struct ltchars d_ltc; +# endif /* TIOCGLTC */ +#endif /* WINNT_NATIVE */ +} ttydata_t; + #endif /* _h_ed_term */ |