/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1984-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* Pat Sullivan *
* *
***********************************************************************/
/*
* terminal interface
*/
#ifndef _TERMINAL_H
#ifdef _hdr_termios
# include <termios.h>
# ifdef __sgi /* special hack to eliminate ^M problem */
# ifndef ECHOCTL
# endif /* ECHOCTL */
# ifndef CNSUSP
# endif /* CNSUSP */
# endif /* __sgi */
#else
# ifdef _sys_termios
# define _hdr_termios
# endif /* _sys_termios */
#endif /* _hdr_termios */
#endif
#ifdef _hdr_termios
# ifndef TCSANOW
# endif /* TCSANOW */
/* the following is because of an ultrix bug */
# if defined(TCSADFLUSH) && !defined(TCSAFLUSH)
# endif
#else
#endif /* _hdr_termios */
#ifdef _hdr_termio
# include <termio.h>
#else
# ifdef _sys_termio
# endif /* _sys_termio */
#endif /* _hdr_termio */
#endif
#ifdef _hdr_termio
#endif /* _hdr_termio */
#ifdef _sys_bsdtty
#endif /* _sys_bsdtty */
#ifdef _hdr_sgtty
# include <sgtty.h>
# ifdef _sys_nttyio
# ifndef LPENDIN
# endif /* LPENDIN */
# endif /* _sys_nttyio */
# ifdef TIOCSETN
# endif /* TIOCSETN */
# ifdef _SELECT_
# ifndef included_sys_time
# ifdef _sys_time
# endif /* _sys_time */
# define included_sys_time
# endif /* included_sys_time */
extern const int tty_speeds[];
# endif /* _SELECT_ */
# ifdef TIOCGETP
# else
# endif /* TIOCGETP */
#endif /* _hdr_sgtty */
#ifndef TCSANOW
# ifdef TCSETAW
# ifdef u370
/* delays are too long, don't wait for output to drain */
# else
# endif /* u370 */
# else
# ifdef TIOCSETN
# endif /* TIOCSETN */
# endif /* TCSETAW */
#endif /* TCSANOW */
#endif /* _TERMINAL_H */
#ifndef _hdr_termios
#endif /* _hdr_termios */
/* set ECHOCTL if driver can echo control charaters as ^c */
#ifdef LCTLECH
# ifndef ECHOCTL
# endif /* !ECHOCTL */
#endif /* LCTLECH */
#ifdef LNEW_CTLECH
# ifndef ECHOCTL
# endif /* !ECHOCTL */
#endif /* LNEW_CTLECH */
#ifdef LNEW_PENDIN
# ifndef PENDIN
# endif /* !PENDIN */
#endif /* LNEW_PENDIN */
#ifndef ECHOCTL
# ifndef VEOL2
# endif /* !VEOL2 */
#endif /* !ECHOCTL */
#ifdef _sys_filio
# ifndef FIONREAD
# endif /* FIONREAD */
#endif /* _sys_filio */
/* set FIORDCHK if you can check for characters in input queue */
#ifdef FIONREAD
# ifndef FIORDCHK
# endif /* !FIORDCHK */
#endif /* FIONREAD */
#ifdef PROTO
extern int tty_alt(int);
extern void tty_cooked(int);
extern int tty_raw(int);
extern int tty_check(int);
#else
extern int tty_alt();
extern void tty_cooked();
extern int tty_get();
extern int tty_raw();
extern int tty_check();
#endif /* PROTO */
extern int tty_set();