[mouse] do not require xterm for mouse use

Fixes #727
This commit is contained in:
Timothy Stack 2020-08-27 14:13:43 -07:00
parent 4fa4a7057b
commit 6182b6b41c

View File

@ -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);
}