aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-22 15:36:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-22 15:36:45 +0000
commit0ccd84d2ef3b925d1039144d26af692fef69b866 (patch)
tree3daaf24581bffd6d508a3d5dbb538a27e31a7d33
parent041a911c43c9c732e5399a7757a4e21ae4ac0607 (diff)
downloadrtmux-0ccd84d2ef3b925d1039144d26af692fef69b866.tar.gz
rtmux-0ccd84d2ef3b925d1039144d26af692fef69b866.tar.bz2
rtmux-0ccd84d2ef3b925d1039144d26af692fef69b866.zip
Instead of skipping del_curterm on FreeBSD < 7, skip it on ncurses < 5.7. It
looks like 5.6 on Linux has the problem too. Reported by Myles Dear.
-rw-r--r--tty-term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index 4e1c279f..95cb5db7 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -389,7 +389,8 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
tty_term_override(term, overrides);
/* Delete curses data. */
-#if !defined(__FreeBSD_version) || __FreeBSD_version >= 700000
+#if !defined(NCURSES_VERSION_MAJOR) || NCURSES_VERSION_MAJOR > 5 || \
+ (NCURSES_VERSION_MAJOR == 5 && NCURSES_VERSION_MINOR > 6)
del_curterm(cur_term);
#endif