From bf8acce375a7387f6e4f6a01ee806459ddf52636 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 5 May 2025 23:46:21 +0300 Subject: terminfo: use the enter_ca_mode/exit_ca_mode capabilities to restore the screen at exit termcap was already doing it. Perhaps termcap is meant to be the main Video TECO interface? --- tecterm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tecterm.c b/tecterm.c index fe48e6c..88ff362 100644 --- a/tecterm.c +++ b/tecterm.c @@ -173,6 +173,8 @@ term_init() terminfo_magic_cookie_glitch = magic_cookie_glitch > 0 ? magic_cookie_glitch : 0; + tputs(enter_ca_mode,1,term_putc); + #endif }/* End Routine */ @@ -205,6 +207,12 @@ term_finish() #endif +#ifdef TERMINFO + + tputs(exit_ca_mode,1,term_putc); + +#endif + /* * Now flush that all out */ -- cgit v1.2.3