Blame readline/tcap.h

Packit Service a43483
/* tcap.h -- termcap library functions and variables. */
Packit Service a43483
Packit Service a43483
/* Copyright (C) 1996-2009 Free Software Foundation, Inc.
Packit Service a43483
Packit Service a43483
   This file is part of the GNU Readline Library (Readline), a library
Packit Service a43483
   for reading lines of text with interactive input and history editing.      
Packit Service a43483
Packit Service a43483
   Readline is free software: you can redistribute it and/or modify
Packit Service a43483
   it under the terms of the GNU General Public License as published by
Packit Service a43483
   the Free Software Foundation, either version 3 of the License, or
Packit Service a43483
   (at your option) any later version.
Packit Service a43483
Packit Service a43483
   Readline is distributed in the hope that it will be useful,
Packit Service a43483
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service a43483
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service a43483
   GNU General Public License for more details.
Packit Service a43483
Packit Service a43483
   You should have received a copy of the GNU General Public License
Packit Service a43483
   along with Readline.  If not, see <http://www.gnu.org/licenses/>.
Packit Service a43483
*/
Packit Service a43483
Packit Service a43483
#if !defined (_RLTCAP_H_)
Packit Service a43483
#define _RLTCAP_H_
Packit Service a43483
Packit Service a43483
#if defined (HAVE_CONFIG_H)
Packit Service a43483
#  include "config.h"
Packit Service a43483
#endif
Packit Service a43483
Packit Service a43483
#if defined (HAVE_TERMCAP_H)
Packit Service a43483
#  if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES)
Packit Service a43483
#    include "rltty.h"
Packit Service a43483
#  endif
Packit Service a43483
#  include <termcap.h>
Packit Service a43483
#elif defined (HAVE_NCURSES_TERMCAP_H)
Packit Service a43483
#  include <ncurses/termcap.h>
Packit Service a43483
#else
Packit Service a43483
Packit Service a43483
/* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC.
Packit Service a43483
   Unfortunately, PC is a global variable used by the termcap library. */
Packit Service a43483
#ifdef PC
Packit Service a43483
#  undef PC
Packit Service a43483
#endif
Packit Service a43483
Packit Service a43483
extern char PC;
Packit Service a43483
extern char *UP, *BC;
Packit Service a43483
Packit Service a43483
extern short ospeed;
Packit Service a43483
Packit Service a43483
extern int tgetent ();
Packit Service a43483
extern int tgetflag ();
Packit Service a43483
extern int tgetnum ();
Packit Service a43483
extern char *tgetstr ();
Packit Service a43483
Packit Service a43483
extern int tputs ();
Packit Service a43483
Packit Service a43483
extern char *tgoto ();
Packit Service a43483
Packit Service a43483
#endif /* HAVE_TERMCAP_H */
Packit Service a43483
Packit Service a43483
#endif /* !_RLTCAP_H_ */