Fix NO_TERMS compile, rename func

... to match others, from tty_curs_set to term_curs_set
This commit is contained in:
Pasi Kallinen
2024-04-02 14:30:16 +03:00
parent 7030b0b9fe
commit c4d4bafb44
4 changed files with 24 additions and 17 deletions

View File

@@ -747,16 +747,6 @@ tty_nhbell(void)
(void) fflush(stdout);
}
/* hide or show cursor */
void
tty_curs_set(int visibility)
{
if (!visibility && nh_VI)
xputs(nh_VI);
else if (visibility && nh_VE)
xputs(nh_VE);
}
#ifdef ASCIIGRAPH
void
graph_on(void)
@@ -1495,6 +1485,16 @@ term_start_bgcolor(int color)
xputs(tmp);
}
/* hide or show cursor */
void
term_curs_set(int visibility)
{
if (!visibility && nh_VI)
xputs(nh_VI);
else if (visibility && nh_VE)
xputs(nh_VE);
}
#ifndef SEP2
#define tcfmtstr "\033[38;2;%ld;%ld;%ldm"
#ifdef UNIX