mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Merge pull request #1495 from ailin-nemui/terminclude
fe-text: include the real tputs(3) from term.h
(cherry picked from commit db32744ee4
)
This commit is contained in:
parent
7145e1ef20
commit
91593cfec3
@ -30,6 +30,13 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_TERM_H
|
||||||
|
#include <term.h>
|
||||||
|
#else
|
||||||
|
/* TODO: This needs arguments, starting with C2X. */
|
||||||
|
int tputs();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* returns number of characters in the beginning of the buffer being a
|
/* returns number of characters in the beginning of the buffer being a
|
||||||
a single character, or -1 if more input is needed. The character will be
|
a single character, or -1 if more input is needed. The character will be
|
||||||
saved in result */
|
saved in result */
|
||||||
@ -314,9 +321,6 @@ inline static int term_putchar(int c)
|
|||||||
return fputc(c, current_term->out);
|
return fputc(c, current_term->out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* copied from terminfo-core.c */
|
|
||||||
int tputs();
|
|
||||||
|
|
||||||
static int termctl_set_color_24bit(int bg, unsigned int lc)
|
static int termctl_set_color_24bit(int bg, unsigned int lc)
|
||||||
{
|
{
|
||||||
static char buf[20];
|
static char buf[20];
|
||||||
|
Loading…
Reference in New Issue
Block a user