summaryrefslogtreecommitdiff
path: root/Src/Modules/termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/termcap.c')
-rw-r--r--Src/Modules/termcap.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 60a6e138a..af4009a3a 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -345,16 +345,7 @@ int
boot_(UNUSED(Module m))
{
#ifdef HAVE_TGETENT
-# ifdef HAVE_SETUPTERM
- int errret;
-
- /*
- * Just because we can't set up the terminal doesn't
- * mean the modules hasn't booted---TERM may change,
- * and it should be handled dynamically---so ignore errors here.
- */
- (void)setupterm((char *)0, 1, &errret);
-# endif
+ zsetupterm();
#endif
return 0;
}
@@ -363,6 +354,9 @@ boot_(UNUSED(Module m))
int
cleanup_(Module m)
{
+#ifdef HAVE_TGETENT
+ zdeleteterm();
+#endif
return setfeatureenables(m, &module_features, NULL);
}