From 91593cfec39725d8505ef3f7fbb885073972b534 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 13 Sep 2023 20:55:21 +0000 Subject: [PATCH] Merge pull request #1495 from ailin-nemui/terminclude fe-text: include the real tputs(3) from term.h (cherry picked from commit db32744ee42ff30cfa710d32ef1c8bbc6f2ff9a1) --- src/fe-text/term-terminfo.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 78496a64..9902bc03 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -30,6 +30,13 @@ #include #include +#ifdef HAVE_TERM_H +#include +#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];