1 /* @(#)termcap.h 1.6 03/06/15 Copyright 1995 J. Schilling */ 2 /* 3 * Copyright (c) 1995 J. Schilling 4 */ 5 /* 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License along with 17 * this program; see the file COPYING. If not, write to the Free Software 18 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21 #ifndef _TERMCAP_H 22 #define _TERMCAP_H 23 24 #ifndef _MCONFIG_H 25 #include <mconfig.h> 26 #endif 27 #ifndef _PROTOTYP_H 28 #include <prototyp.h> 29 #endif 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /* 36 * Flags for tcsetflags() 37 */ 38 #define TCF_NO_TC 0x0001 /* Don't follow tc= entries */ 39 #define TCF_NO_SIZE 0x0002 /* Don't get actual ttysize (li#/co#)*/ 40 #define TCF_NO_STRIP 0x0004 /* Don't strip down termcap buffer */ 41 42 extern char PC; /* Pad character */ 43 extern char *BC; /* Backspace if not "\b" from "bc" capability*/ 44 extern char *UP; /* Cursor up string from "up" capability */ 45 extern short ospeed; /* output speed coded as in ioctl */ 46 47 extern int tgetent __PR((char *bp, char *name)); 48 extern int tcsetflags __PR((int flags)); 49 extern char *tcgetbuf __PR((void)); 50 extern int tgetnum __PR((char *ent)); 51 extern BOOL tgetflag __PR((char *ent)); 52 extern char *tgetstr __PR((char *ent, char **array)); 53 extern char *tdecode __PR((char *ep, char **array)); 54 55 extern int tputs __PR((char *cp, int affcnt, int (*outc)(int c))); 56 extern char *tgoto __PR((char *cm, int destcol, int destline)); 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /* _TERMCAP_H */ 63