mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Merge pull request #1290 from mistydemeo/check_for_term_h
Add a check for term.h
This commit is contained in:
commit
a731525012
3 changed files with 10 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ inline static int term_putchar(int c)
|
|||
return fputc(c, current_term->out);
|
||||
}
|
||||
|
||||
#ifdef HAVE_TERM_H
|
||||
#include <term.h>
|
||||
#else
|
||||
/* Don't bother including curses.h because of these -
|
||||
they might not even be defined there */
|
||||
char *tparm();
|
||||
|
|
@ -21,6 +24,8 @@ int setupterm();
|
|||
char *tigetstr();
|
||||
int tigetnum();
|
||||
int tigetflag();
|
||||
#endif
|
||||
|
||||
#define term_getstr(x, buffer) tigetstr(x.ti_name)
|
||||
#define term_getnum(x) tigetnum(x.ti_name);
|
||||
#define term_getflag(x) tigetflag(x.ti_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue