| 1 | /* tcap.h -- termcap library functions and variables. */ |
| 2 | |
| 3 | /* Copyright (C) 1996 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 2, 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 | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ |
| 23 | |
| 24 | #if !defined (_RLTCAP_H_) |
| 25 | #define _RLTCAP_H_ |
| 26 | |
| 27 | #if defined (HAVE_CONFIG_H) |
| 28 | # include "config.h" |
| 29 | #endif |
| 30 | |
| 31 | #if defined (HAVE_TERMCAP_H) |
| 32 | # if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES) |
| 33 | # include "rltty.h" |
| 34 | # endif |
| 35 | # include <termcap.h> |
| 36 | #else |
| 37 | |
| 38 | /* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC. |
| 39 | Unfortunately, PC is a global variable used by the termcap library. */ |
| 40 | #ifdef PC |
| 41 | # undef PC |
| 42 | #endif |
| 43 | |
| 44 | extern char PC; |
| 45 | extern char *UP, *BC; |
| 46 | |
| 47 | extern short ospeed; |
| 48 | |
| 49 | extern int tgetent (); |
| 50 | extern int tgetflag (); |
| 51 | extern int tgetnum (); |
| 52 | extern char *tgetstr (); |
| 53 | |
| 54 | extern int tputs (); |
| 55 | |
| 56 | extern char *tgoto (); |
| 57 | |
| 58 | #endif /* HAVE_TERMCAP_H */ |
| 59 | |
| 60 | #endif /* !_RLTCAP_H_ */ |