11541Srgrimes/* tcap.h -- termcap library functions and variables. */
21541Srgrimes
31541Srgrimes/* Copyright (C) 1996 Free Software Foundation, Inc.
41541Srgrimes
51541Srgrimes   This file contains the Readline Library (the Library), a set of
61541Srgrimes   routines for providing Emacs style line input to programs that ask
71541Srgrimes   for it.
845773Sdcs
945773Sdcs   The Library is free software; you can redistribute it and/or modify
101541Srgrimes   it under the terms of the GNU General Public License as published by
111541Srgrimes   the Free Software Foundation; either version 2, or (at your option)
121541Srgrimes   any later version.
131541Srgrimes
141541Srgrimes   The Library is distributed in the hope that it will be useful, but
151541Srgrimes   WITHOUT ANY WARRANTY; without even the implied warranty of
161541Srgrimes   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
171541Srgrimes   General Public License for more details.
181541Srgrimes
191541Srgrimes   The GNU General Public License is often shipped with GNU software, and
201541Srgrimes   is generally kept in a file called COPYING or LICENSE.  If you do not
211541Srgrimes   have a copy of the license, write to the Free Software Foundation,
221541Srgrimes   59 Temple Place, Suite 330, Boston, MA 02111 USA. */
231541Srgrimes
241541Srgrimes#if !defined (_RLTCAP_H_)
251541Srgrimes#define _RLTCAP_H_
261541Srgrimes
271541Srgrimes#if defined (HAVE_CONFIG_H)
281541Srgrimes#  include "config.h"
291541Srgrimes#endif
301541Srgrimes
311541Srgrimes#if defined (HAVE_TERMCAP_H)
321541Srgrimes#  if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES)
331541Srgrimes#    include "rltty.h"
341541Srgrimes#  endif
3522521Sdyson#  include <termcap.h>
361541Srgrimes#else
371541Srgrimes
38116181Sobrien/* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC.
39116181Sobrien   Unfortunately, PC is a global variable used by the termcap library. */
40116181Sobrien#ifdef PC
411541Srgrimes#  undef PC
4296009Sjeff#endif
431541Srgrimes
441541Srgrimesextern char PC;
45120492Sfjoeextern char *UP, *BC;
461541Srgrimes
47166639Srodrigcextern short ospeed;
48166639Srodrigc
491541Srgrimesextern int tgetent ();
50120492Sfjoeextern int tgetflag ();
5172435Ssobomaxextern int tgetnum ();
5272435Ssobomaxextern char *tgetstr ();
5345773Sdcs
5445773Sdcsextern int tputs ();
5545773Sdcs
5645773Sdcsextern char *tgoto ();
5745773Sdcs
58120492Sfjoe#endif /* HAVE_TERMCAP_H */
5945773Sdcs
6045773Sdcs#endif /* !_RLTCAP_H_ */
6145773Sdcs