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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 784844169..7367dade7 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -370,9 +370,13 @@ boot_(Module m)
#ifdef HAVE_TGETENT
# ifdef HAVE_SETUPTERM
int errret;
- if (setupterm((char *)0, 1, &errret) == ERR) {
- return 1;
- }
+
+ /*
+ * 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
#endif
return 0;