xref: /dflybsd-src/contrib/gdb-7/readline/tcap.h (revision 16003dcfd2baa152f5dd24794ec9f36e139eaeb8)
1*6b445a62SJohn Marino /* tcap.h -- termcap library functions and variables. */
2*6b445a62SJohn Marino 
3*6b445a62SJohn Marino /* Copyright (C) 1996-2009 Free Software Foundation, Inc.
4*6b445a62SJohn Marino 
5*6b445a62SJohn Marino    This file is part of the GNU Readline Library (Readline), a library
6*6b445a62SJohn Marino    for reading lines of text with interactive input and history editing.
7*6b445a62SJohn Marino 
8*6b445a62SJohn Marino    Readline is free software: you can redistribute it and/or modify
9*6b445a62SJohn Marino    it under the terms of the GNU General Public License as published by
10*6b445a62SJohn Marino    the Free Software Foundation, either version 3 of the License, or
11*6b445a62SJohn Marino    (at your option) any later version.
12*6b445a62SJohn Marino 
13*6b445a62SJohn Marino    Readline is distributed in the hope that it will be useful,
14*6b445a62SJohn Marino    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*6b445a62SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*6b445a62SJohn Marino    GNU General Public License for more details.
17*6b445a62SJohn Marino 
18*6b445a62SJohn Marino    You should have received a copy of the GNU General Public License
19*6b445a62SJohn Marino    along with Readline.  If not, see <http://www.gnu.org/licenses/>.
20*6b445a62SJohn Marino */
21*6b445a62SJohn Marino 
22*6b445a62SJohn Marino #if !defined (_RLTCAP_H_)
23*6b445a62SJohn Marino #define _RLTCAP_H_
24*6b445a62SJohn Marino 
25*6b445a62SJohn Marino #if defined (HAVE_CONFIG_H)
26*6b445a62SJohn Marino #  include "config.h"
27*6b445a62SJohn Marino #endif
28*6b445a62SJohn Marino 
29*6b445a62SJohn Marino #if defined (HAVE_TERMCAP_H)
30*6b445a62SJohn Marino #  if defined (__linux__) && !defined (SPEED_T_IN_SYS_TYPES)
31*6b445a62SJohn Marino #    include "rltty.h"
32*6b445a62SJohn Marino #  endif
33*6b445a62SJohn Marino #  include <termcap.h>
34*6b445a62SJohn Marino #else
35*6b445a62SJohn Marino 
36*6b445a62SJohn Marino /* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC.
37*6b445a62SJohn Marino    Unfortunately, PC is a global variable used by the termcap library. */
38*6b445a62SJohn Marino #ifdef PC
39*6b445a62SJohn Marino #  undef PC
40*6b445a62SJohn Marino #endif
41*6b445a62SJohn Marino 
42*6b445a62SJohn Marino extern char PC;
43*6b445a62SJohn Marino extern char *UP, *BC;
44*6b445a62SJohn Marino 
45*6b445a62SJohn Marino extern short ospeed;
46*6b445a62SJohn Marino 
47*6b445a62SJohn Marino extern int tgetent ();
48*6b445a62SJohn Marino extern int tgetflag ();
49*6b445a62SJohn Marino extern int tgetnum ();
50*6b445a62SJohn Marino extern char *tgetstr ();
51*6b445a62SJohn Marino 
52*6b445a62SJohn Marino extern int tputs ();
53*6b445a62SJohn Marino 
54*6b445a62SJohn Marino extern char *tgoto ();
55*6b445a62SJohn Marino 
56*6b445a62SJohn Marino #endif /* HAVE_TERMCAP_H */
57*6b445a62SJohn Marino 
58*6b445a62SJohn Marino #endif /* !_RLTCAP_H_ */
59