id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4233	Enable xterm_flag in screen and tmux even without DISPLAY	filip.hejsek	andrew_b	"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]"	defect	closed	major	4.8.27	mc-tty	master	fixed					merged	committed-master
