aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-05 23:46:21 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-05 23:46:21 +0300
commitbf8acce375a7387f6e4f6a01ee806459ddf52636 (patch)
treeeddfd2f793c1061ee8ad2e9b78d90aa0844dbe39
parentaffee01c15193581eb2d6c80a045071b90e00ec7 (diff)
downloadvideoteco-fork-bf8acce375a7387f6e4f6a01ee806459ddf52636.tar.gz
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?
-rw-r--r--tecterm.c8
1 files changed, 8 insertions, 0 deletions
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
*/