diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/Modules/terminfo.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 6a73aa012..849e62793 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-09-14 Clint Adams <clint@zsh.org> + + * 19076: Src/Modules/terminfo.c: don't call setupterm + with NULL as last argument as that causes the shell to + exit when the terminal is unknown. + 2003-09-11 Oliver Kiddle <opk@zsh.org> * 19059: acconfig.h, zshconfig.ac, Src/builtin.c, Src/exec.c, diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index b128e0bb5..f869e0e36 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -376,7 +376,10 @@ boot_(Module m) { #ifdef HAVE_TIGETSTR # ifdef HAVE_SETUPTERM - setupterm((char *)0, 1, (int *)0); + int errret; + + if (setupterm((char *)0, 1, &errret) == ERR) + return 1; # endif if (!createtihash()) |