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