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

@@ -231,8 +231,10 @@ VA_DECL(const char *, s)
VA_START(s);
VA_INIT(s, const char *);
/* error() may get called before tty is initialized */
#ifdef TTY_GRAPHICS
if (iflags.window_inited)
end_screen();
term_end_screen();
#endif
if (WINDOWPORT(tty)) {
buf[0] = '\n';
(void) vsnprintf(&buf[1], sizeof buf - (1 + sizeof "\n"), s, VA_ARGS);