121308Sache/* tcap.h -- termcap library functions and variables. */
221308Sache
321308Sache/* Copyright (C) 1996 Free Software Foundation, Inc.
421308Sache
521308Sache   This file contains the Readline Library (the Library), a set of
621308Sache   routines for providing Emacs style line input to programs that ask
721308Sache   for it.
821308Sache
921308Sache   The Library is free software; you can redistribute it and/or modify
1021308Sache   it under the terms of the GNU General Public License as published by
1158310Sache   the Free Software Foundation; either version 2, or (at your option)
1221308Sache   any later version.
1321308Sache
1421308Sache   The Library is distributed in the hope that it will be useful, but
1521308Sache   WITHOUT ANY WARRANTY; without even the implied warranty of
1621308Sache   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1721308Sache   General Public License for more details.
1821308Sache
1921308Sache   The GNU General Public License is often shipped with GNU software, and
2021308Sache   is generally kept in a file called COPYING or LICENSE.  If you do not
2121308Sache   have a copy of the license, write to the Free Software Foundation,
2258310Sache   59 Temple Place, Suite 330, Boston, MA 02111 USA. */
2321308Sache
2421308Sache#if !defined (_RLTCAP_H_)
2521308Sache#define _RLTCAP_H_
2621308Sache
2721308Sache#if defined (HAVE_CONFIG_H)
2821308Sache#  include "config.h"
2921308Sache#endif
3021308Sache
3121308Sache#if defined (HAVE_TERMCAP_H)
3226497Sache#  if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES)
3326497Sache#    include "rltty.h"
3426497Sache#  endif
3521308Sache#  include <termcap.h>
3621308Sache#else
3721308Sache
3821308Sache/* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC.
3921308Sache   Unfortunately, PC is a global variable used by the termcap library. */
4021308Sache#ifdef PC
4121308Sache#  undef PC
4221308Sache#endif
4321308Sache
4421308Sacheextern char PC;
4521308Sacheextern char *UP, *BC;
4621308Sache
4721308Sacheextern short ospeed;
4821308Sache
4921308Sacheextern int tgetent ();
5021308Sacheextern int tgetflag ();
5121308Sacheextern int tgetnum ();
5221308Sacheextern char *tgetstr ();
5321308Sache
5421308Sacheextern int tputs ();
5521308Sache
5621308Sacheextern char *tgoto ();
5721308Sache
5821308Sache#endif /* HAVE_TERMCAP_H */
5921308Sache
6021308Sache#endif /* !_RLTCAP_H_ */
61