diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-22 20:49:31 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-22 20:49:31 +0100 |
commit | 68627ddb5eca01c831a679b1ab425a7411ef48a6 (patch) | |
tree | ad4bf1bdd1012dca3256fd4e5e017b37095a8eff | |
parent | 6c30579882483ae99f683df22f3719d3d54e7ad3 (diff) | |
download | ponymap-68627ddb5eca01c831a679b1ab425a7411ef48a6.tar.gz ponymap-68627ddb5eca01c831a679b1ab425a7411ef48a6.tar.xz ponymap-68627ddb5eca01c831a679b1ab425a7411ef48a6.zip |
Don't die if the terminal cannot be detected
-rw-r--r-- | ponymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -64,7 +64,8 @@ init_terminal (void) if ((g_terminal.stdout_is_tty = isatty (STDOUT_FILENO))) tty_fd = STDOUT_FILENO; - if (tty_fd == -1 || setupterm (NULL, tty_fd, NULL) == ERR) + int err; + if (tty_fd == -1 || setupterm (NULL, tty_fd, &err) == ERR) return; // Make sure all terminal features used by us are supported |