mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +00:00
parent
4fa4a7057b
commit
6182b6b41c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user