Support the Curses-only configuration

This commit is contained in:
Ray Chason
2026-07-10 09:08:55 -04:00
parent 7889eedfa5
commit e00b32263e
6 changed files with 21 additions and 3 deletions
+2
View File
@@ -271,7 +271,9 @@ msexit(void)
restore_colors();
#endif
wait_synch();
#if !(defined(MSDOS) && !defined(TTY_GRAPHICS))
term_curs_set(1);
#endif
return;
}
#endif /* MICRO || OS2 */
+6
View File
@@ -38,7 +38,9 @@ settty(const char *s)
#if defined(MSDOS) && defined(NO_TERMS)
gr_finish();
#endif
#if !(defined(MSDOS) && !defined(TTY_GRAPHICS))
term_end_screen();
#endif
if (s)
raw_print(s);
#if !defined(TOS)
@@ -50,7 +52,9 @@ settty(const char *s)
void
setftty(void)
{
#if !(defined(MSDOS) && !defined(TTY_GRAPHICS))
term_start_screen();
#endif
}
#ifdef ENHANCED_SYMBOLS
@@ -83,8 +87,10 @@ VA_DECL(const char *, s)
VA_START(s);
VA_INIT(s, const char *);
/* error() may get called before tty is initialized */
#if !(defined(MSDOS) && !defined(TTY_GRAPHICS))
if (iflags.window_inited)
term_end_screen();
#endif
putchar('\n');
Vprintf(s, VA_ARGS);
putchar('\n');