]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/readline/rltty.h
Imported from ../bash-2.01.tar.gz.
[thirdparty/bash.git] / lib / readline / rltty.h
CommitLineData
ccc6cda3
JA
1/* rltty.h - tty driver-related definitions used by some library files. */
2
3/* Copyright (C) 1995 Free Software Foundation, Inc.
4
5 This file contains the Readline Library (the Library), a set of
6 routines for providing Emacs style line input to programs that ask
7 for it.
8
9 The Library is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 1, or (at your option)
12 any later version.
13
14 The Library is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 The GNU General Public License is often shipped with GNU software, and
20 is generally kept in a file called COPYING or LICENSE. If you do not
21 have a copy of the license, write to the Free Software Foundation,
22 675 Mass Ave, Cambridge, MA 02139, USA. */
23
24#if !defined (_RLTTY_H_)
25#define _RLTTY_H
26
27/* Posix systems use termios and the Posix signal functions. */
28#if defined (TERMIOS_TTY_DRIVER)
29# include <termios.h>
30#endif /* TERMIOS_TTY_DRIVER */
31
32/* System V machines use termio. */
33#if defined (TERMIO_TTY_DRIVER)
34# include <termio.h>
35# if !defined (TCOON)
36# define TCOON 1
37# endif
38#endif /* TERMIO_TTY_DRIVER */
39
40/* Other (BSD) machines use sgtty. */
41#if defined (NEW_TTY_DRIVER)
42# include <sgtty.h>
43#endif
44
d166f048
JA
45/* Stuff for `struct winsize' on various systems. */
46#if defined (HAVE_SYS_STREAM_H)
47# include <sys/stream.h>
48#endif /* HAVE_SYS_STREAM_H */
49#if defined (HAVE_SYS_PTEM_H)
50# include <sys/ptem.h>
51# define _IO_PTEM_H /* work around SVR4.2 1.1.4 bug */
52#endif /* HAVE_SYS_PTEM_H */
53#if defined (HAVE_SYS_PTE_H)
54# include <sys/pte.h>
55#endif /* HAVE_SYS_PTE_H */
56
ccc6cda3
JA
57/* Define _POSIX_VDISABLE if we are not using the `new' tty driver and
58 it is not already defined. It is used both to determine if a
59 special character is disabled and to disable certain special
60 characters. Posix systems should set to 0, USG systems to -1. */
61#if !defined (NEW_TTY_DRIVER) && !defined (_POSIX_VDISABLE)
62# if defined (_SVR4_VDISABLE)
63# define _POSIX_VDISABLE _SVR4_VDISABLE
64# else
65# if defined (_POSIX_VERSION)
66# define _POSIX_VDISABLE 0
67# else /* !_POSIX_VERSION */
68# define _POSIX_VDISABLE -1
69# endif /* !_POSIX_VERSION */
70# endif /* !_SVR4_DISABLE */
71#endif /* !NEW_TTY_DRIVER && !_POSIX_VDISABLE */
72
73#endif /* _RLTTY_H_ */