1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

fe-text: include the real tputs(3) from term.h

This commit includes the real `tpus(3)` function from the appropriate
`term.h` header file, if found.

This commit is necessary to fix a compiler warning on Darwin.
This commit is contained in:
Emil Engler 2023-08-14 11:56:39 +02:00
parent 67d961676d
commit e578331192
No known key found for this signature in database
GPG Key ID: 2F6D4145C55FC7C7

View File

@ -30,6 +30,13 @@
#include <termios.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
a single character, or -1 if more input is needed. The character will be
saved in result */
@ -314,9 +321,6 @@ inline static int term_putchar(int c)
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 char buf[20];