1 /* @(#)termcap.h 1.10 10/08/27 Copyright 1995-2010 J. Schilling */ 2 /* 3 * Copyright (c) 1995-2010 J. Schilling 4 */ 5 /* 6 * The contents of this file are subject to the terms of the 7 * Common Development and Distribution License, Version 1.0 only 8 * (the "License"). You may not use this file except in compliance 9 * with the License. 10 * 11 * See the file CDDL.Schily.txt in this distribution for details. 12 * A copy of the CDDL is also available via the Internet at 13 * http://www.opensource.org/licenses/cddl1.txt 14 * 15 * When distributing Covered Code, include this CDDL HEADER in each 16 * file and include the License file CDDL.Schily.txt from this distribution. 17 */ 18 19 #ifndef _SCHILY_TERMCAP_H 20 #define _SCHILY_TERMCAP_H 21 22 #ifndef _SCHILY_MCONFIG_H 23 #include <schily/mconfig.h> 24 #endif 25 #ifndef _SCHILY_STANDARD_H 26 #include <schily/standard.h> 27 #endif 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /* 34 * Flags for tcsetflags() 35 */ 36 #define TCF_NO_TC 0x0001 /* Don't follow tc= entries */ 37 #define TCF_NO_SIZE 0x0002 /* Don't get actual ttysize (li#/co#) */ 38 #define TCF_NO_STRIP 0x0004 /* Don't strip down termcap buffer */ 39 40 extern char PC; /* Pad character */ 41 extern char *BC; /* Backspace if not "\b" from "bc" capability */ 42 extern char *UP; /* Cursor up string from "up" capability */ 43 extern short ospeed; /* output speed coded as in ioctl */ 44 45 extern int tgetent __PR((char *bp, char *name)); 46 extern int tcsetflags __PR((int flags)); 47 extern char *tcgetbuf __PR((void)); 48 extern int tgetnum __PR((char *ent)); 49 extern BOOL tgetflag __PR((char *ent)); 50 extern char *tgetstr __PR((char *ent, char **array)); 51 extern char *tdecode __PR((char *ep, char **array)); 52 53 extern int tputs __PR((char *cp, int affcnt, 54 int (*outc)(int c))); 55 extern char *tgoto __PR((char *cm, int destcol, int destline)); 56 57 #ifdef __cplusplus 58 } 59 #endif 60 61 #endif /* _SCHILY_TERMCAP_H */ 62