Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 1 | /* termcap.h - public declarations for termcap library. */ |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 2 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 6 | it under the terms of the GNU General Public License as published by |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 7 | the Free Software Foundation, either version 3 of the License, or |
| 8 | (at your option) any later version. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 9 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 10 | Bash is distributed in the hope that it will be useful, |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 16 | along with Bash. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 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; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 32 | extern void tputs (const char *string, int nlines, int (*outfun) (int)); |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 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 */ |