Enable xterm_flag in screen and tmux even without DISPLAY #4233
Labels
area: tty
Interaction with the terminal, screen libraries
prio: medium
Has the potential to affect progress
Milestone
Important
This issue was migrated from Trac:
filip.hejsek
(filip.hejsek@….com)Currently, the xterm_flag, and therefore mouse support, is only enabled with TERM=screen when the DISPLAY variable is set to nonempty value. However, this is not always the case (for example when using srceen/tmux over ssh), and the absence of the DISPLAY variable doesn't mean the terminal doesn't support mouse. The correct thing to do is to always enable mouse support under screen/tmux.
Additionally, while tmux by default sets TERM to "screen" for compatibility, it also supports "tmux" and "tmux-256color", so these should be detected too.
I was about to submit a pull request on github, but then i saw the message that you don't use github pull requests, so i submitted this ticket instead. The commit is here: https://github.com/filip-hejsek/mc/commit/01c7047ac4c6cd8595448b51dd45d6f769cf43db
The text was updated successfully, but these errors were encountered: