POSIX says that term.h should define tgetstr and friends
Fixes PR lib/43941
This commit is contained in:
parent
c033559e42
commit
9a92225ded
@ -1,7 +1,7 @@
|
||||
/* $NetBSD: term.h,v 1.6 2010/09/22 06:10:51 roy Exp $ */
|
||||
/* $NetBSD: term.h,v 1.7 2011/04/11 21:13:09 roy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
|
||||
* Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Roy Marples.
|
||||
@ -1463,10 +1463,6 @@ typedef struct {
|
||||
__BEGIN_DECLS
|
||||
|
||||
extern TERMINAL *cur_term;
|
||||
#ifndef _TERMCAP_H
|
||||
extern short ospeed;
|
||||
extern char PC;
|
||||
#endif
|
||||
|
||||
/* setup functions */
|
||||
int setupterm(const char *, int, int *);
|
||||
@ -1482,12 +1478,6 @@ char * tigetstr(const char *);
|
||||
char * tparm(const char *, long, long, long, long, long,
|
||||
long, long, long, long);
|
||||
|
||||
#ifndef _TERMCAP_H
|
||||
/* Output functions. */
|
||||
int putp(const char *);
|
||||
int tputs(const char *, int, int (*)(int));
|
||||
#endif
|
||||
|
||||
/* Non standard functions, but provide a level of thread safety */
|
||||
int ti_setupterm(TERMINAL **, const char *, int, int *);
|
||||
int ti_getflag(const TERMINAL *, const char *);
|
||||
@ -1516,5 +1506,8 @@ char * t_vparm(TERMINAL *, const char *, ...);
|
||||
* The passed string is destroyed and the return string needs to be freed. */
|
||||
char * captoinfo(char *);
|
||||
|
||||
/* POSIX says that term.h should also pull in our termcap definitions. */
|
||||
#include <termcap.h>
|
||||
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* $NetBSD: termcap.h,v 1.1 2010/02/03 15:16:32 roy Exp $ */
|
||||
/* $NetBSD: termcap.h,v 1.2 2011/04/11 21:13:09 roy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
* Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Roy Marples.
|
||||
@ -34,7 +34,6 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#ifndef _TERM_H
|
||||
/* Output functions.
|
||||
* These are still valid for terminfo. */
|
||||
int putp(const char *);
|
||||
@ -42,8 +41,6 @@ int tputs(const char *, int, int (*)(int));
|
||||
|
||||
extern short ospeed;
|
||||
extern char PC;
|
||||
#endif
|
||||
|
||||
extern char *BC;
|
||||
extern char *UP;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user