From 6182b6b41ccd5f50e4eb581552bf258bd171c086 Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Thu, 27 Aug 2020 14:13:43 -0700 Subject: [PATCH] [mouse] do not require xterm for mouse use Fixes #727 --- src/xterm_mouse.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/xterm_mouse.cc b/src/xterm_mouse.cc index 9f29cbc1..477c3401 100644 --- a/src/xterm_mouse.cc +++ b/src/xterm_mouse.cc @@ -89,11 +89,5 @@ void xterm_mouse::set_enabled(bool enabled) bool xterm_mouse::is_available() { - const char *termname = getenv("TERM"); - bool retval = false; - - if (termname and strstr(termname, "xterm") != NULL) { - retval = isatty(STDOUT_FILENO); - } - return retval; + return isatty(STDOUT_FILENO); }