1*1acd27e7Smillert /* tcap.h -- termcap library functions and variables. */ 2*1acd27e7Smillert 3*1acd27e7Smillert /* Copyright (C) 1996 Free Software Foundation, Inc. 4*1acd27e7Smillert 5*1acd27e7Smillert This file contains the Readline Library (the Library), a set of 6*1acd27e7Smillert routines for providing Emacs style line input to programs that ask 7*1acd27e7Smillert for it. 8*1acd27e7Smillert 9*1acd27e7Smillert The Library is free software; you can redistribute it and/or modify 10*1acd27e7Smillert it under the terms of the GNU General Public License as published by 11*1acd27e7Smillert the Free Software Foundation; either version 2, or (at your option) 12*1acd27e7Smillert any later version. 13*1acd27e7Smillert 14*1acd27e7Smillert The Library is distributed in the hope that it will be useful, but 15*1acd27e7Smillert WITHOUT ANY WARRANTY; without even the implied warranty of 16*1acd27e7Smillert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17*1acd27e7Smillert General Public License for more details. 18*1acd27e7Smillert 19*1acd27e7Smillert The GNU General Public License is often shipped with GNU software, and 20*1acd27e7Smillert is generally kept in a file called COPYING or LICENSE. If you do not 21*1acd27e7Smillert have a copy of the license, write to the Free Software Foundation, 22*1acd27e7Smillert 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 23*1acd27e7Smillert 24*1acd27e7Smillert #if !defined (_RLTCAP_H_) 25*1acd27e7Smillert #define _RLTCAP_H_ 26*1acd27e7Smillert 27*1acd27e7Smillert #if defined (HAVE_CONFIG_H) 28*1acd27e7Smillert # include "config.h" 29*1acd27e7Smillert #endif 30*1acd27e7Smillert 31*1acd27e7Smillert #if defined (HAVE_TERMCAP_H) 32*1acd27e7Smillert # if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES) 33*1acd27e7Smillert # include "rltty.h" 34*1acd27e7Smillert # endif 35*1acd27e7Smillert # include <termcap.h> 36*1acd27e7Smillert #else 37*1acd27e7Smillert 38*1acd27e7Smillert /* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC. 39*1acd27e7Smillert Unfortunately, PC is a global variable used by the termcap library. */ 40*1acd27e7Smillert #ifdef PC 41*1acd27e7Smillert # undef PC 42*1acd27e7Smillert #endif 43*1acd27e7Smillert 44*1acd27e7Smillert extern char PC; 45*1acd27e7Smillert extern char *UP, *BC; 46*1acd27e7Smillert 47*1acd27e7Smillert extern short ospeed; 48*1acd27e7Smillert 49*1acd27e7Smillert extern int tgetent (); 50*1acd27e7Smillert extern int tgetflag (); 51*1acd27e7Smillert extern int tgetnum (); 52*1acd27e7Smillert extern char *tgetstr (); 53*1acd27e7Smillert 54*1acd27e7Smillert extern int tputs (); 55*1acd27e7Smillert 56*1acd27e7Smillert extern char *tgoto (); 57*1acd27e7Smillert 58*1acd27e7Smillert #endif /* HAVE_TERMCAP_H */ 59*1acd27e7Smillert 60*1acd27e7Smillert #endif /* !_RLTCAP_H_ */ 61