00001 /* tcap.h -- termcap library functions and variables. */ 00002 00003 /* Copyright (C) 1996 Free Software Foundation, Inc. 00004 00005 This file contains the Readline Library (the Library), a set of 00006 routines for providing Emacs style line input to programs that ask 00007 for it. 00008 00009 The Library is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2, or (at your option) 00012 any later version. 00013 00014 The Library is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 General Public License for more details. 00018 00019 The GNU General Public License is often shipped with GNU software, and 00020 is generally kept in a file called COPYING or LICENSE. If you do not 00021 have a copy of the license, write to the Free Software Foundation, 00022 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 00023 00024 #if !defined (_RLTCAP_H_) 00025 #define _RLTCAP_H_ 00026 00027 #if defined (HAVE_CONFIG_H) 00028 # include "config.h" 00029 #endif 00030 00031 #if defined (HAVE_TERMCAP_H) 00032 # if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES) 00033 # include "rltty.h" 00034 # endif 00035 # include <termcap.h> 00036 #else 00037 00038 /* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC. 00039 Unfortunately, PC is a global variable used by the termcap library. */ 00040 #ifdef PC 00041 # undef PC 00042 #endif 00043 00044 extern char PC; 00045 extern char *UP, *BC; 00046 00047 extern short ospeed; 00048 00049 extern int tgetent (); 00050 extern int tgetflag (); 00051 extern int tgetnum (); 00052 extern char *tgetstr (); 00053 00054 extern int tputs (); 00055 00056 extern char *tgoto (); 00057 00058 #endif /* HAVE_TERMCAP_H */ 00059 00060 #endif /* !_RLTCAP_H_ */