Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git] / lib / termcap / termcap.h
1 /* termcap.h - public declarations for termcap library. */
2
3 /* Copyright (C) 1991, 1992, 1995, 2001, 2005, 2006, 2008,2009 Free Software Foundation, Inc.
4
5    Bash is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9
10    Bash is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with Bash.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef _TERMCAP_H
20 #define _TERMCAP_H 1
21
22 #if __STDC__
23
24 extern int tgetent (char *buffer, const char *termtype);
25
26 extern int tgetnum (const char *name);
27 extern int tgetflag (const char *name);
28 extern char *tgetstr (const char *name, char **area);
29
30 extern char PC;
31 extern short ospeed;
32 extern void tputs (const char *string, int nlines, int (*outfun) (int));
33
34 extern char *tparam (const char *ctlstring, char *buffer, int size, ...);
35
36 extern char *UP;
37 extern char *BC;
38
39 extern char *tgoto (const char *cstring, int hpos, int vpos);
40
41 #else /* not __STDC__ */
42
43 extern int tgetent ();
44
45 extern int tgetnum ();
46 extern int tgetflag ();
47 extern char *tgetstr ();
48
49 extern char PC;
50 extern short ospeed;
51
52 extern void tputs ();
53
54 extern char *tparam ();
55
56 extern char *UP;
57 extern char *BC;
58
59 extern char *tgoto ();
60
61 #endif /* not __STDC__ */
62
63 #endif /* not _TERMCAP_H */