I wish TMUX would be capable of noticing and either fixing or suggesting a fix for that kind of garbage.
I wish TMUX would be capable of noticing and either fixing or suggesting a fix for that kind of garbage.
It's also almost impossible to validate a program against different environments other than just manually trying as many as you can tolerate.
Also there are lots of systems with broken/incomplete/incorrect termcap databases, so now you're looking at kludgy exception lists anyway.
Tmux switched from using xterm- to screen- and then tmux- as its $TERM at some point, and adding a proper termcap entry, and it's mostly been a net positive, but some things definitely break as a result.
The most annoying thing is that $TERM is inherited over ssh, but the termcap db isn't, so it's not enough to have your local programs configured correctly, you need to have the same config (or at least a workaround) available on all of the remote systems you use.
Tldr: xterm- is ossified, and trying to do anything else, even the correct way, is a nightmare and often can't realistically be made to work.