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

@@ -79,9 +79,9 @@ hooked_tty_getlin(
for (;;) {
(void) fflush(stdout);
Strcat(strcat(strcpy(gt.toplines, query), " "), obufp);
tty_curs_set(1);
term_curs_set(1);
c = pgetchar();
tty_curs_set(0);
term_curs_set(0);
if (c == '\033' || c == EOF) {
if (c == '\033' && obufp[0] != '\0') {
obufp[0] = '\0';