window-port updates

Remove start_screen() and end_screen() from the
Window-port interface.

They were only ever used by tty, and there was a comment
carried to several window-ports about how they "really
should go away. They are tty-specific"

term_start_screen() and term_end_screen() are part of
terminal/NO_TERMS supporting routines now.
This commit is contained in:
nhmall
2025-01-04 23:38:34 -05:00
parent 63dfb84d00
commit be5143bb74
42 changed files with 59 additions and 334 deletions

View File

@@ -11,6 +11,7 @@
#define NEED_VARARGS
#include "hack.h"
#include "wintty.h"
/*
* The distinctions here are not BSD - rest but rather USG - rest, as
@@ -229,7 +230,10 @@ gettty(void)
void
settty(const char *s)
{
end_screen();
#ifdef TTY_GRAPHICS
if (WINDOWPORT(tty))
term_end_screen();
#endif
if (s)
raw_print(s);
if (STTY(&inittyb) < 0 || STTY2(&inittyb2) < 0)
@@ -306,7 +310,11 @@ setftty(void)
if (change)
setctty();
start_screen();
#ifdef TTY_GRAPHICS
if (WINDOWPORT(tty))
term_start_screen();
#endif
}
void intron(void) /* enable kbd interrupts if enabled when game started */
@@ -480,7 +488,7 @@ RESTORE_WARNING_FORMAT_NONLITERAL
#ifdef ENHANCED_SYMBOLS
/*
* set in tty_start_screen() and allows
* set in term_start_screen() and allows
* OS-specific changes that may be
* required for support of utf8.
*/