lorddimwit, Hot take: like “vt100”, “xterm-256color” means nothing in $TERM anymore. Windows Terminal uses it. macOS Terminal uses it. A bunch of others use it.
Do they support the xterm copy region control sequences? What about the xterm read rect or event region stuff?
Of course not. They support a small subset of xterm’s features, but call themselves xterm. It’s basically impossible to determine if you’re on a real xterm and reliably use its advanced features because of their lies.