I don't have control over the shell prompt or preexec, and I want to keep the titles I assign to screens. Can I get screen to ignore title-escape-sequences?
If you have a terminal whose description "looks" like
screen assumes it does everything like
xterm. For whatever reason, it equates xterm-titles and xterm-mouse features:
termcap.c, it checks if either the
TERMenvironment variable contains the string "xterm" or "rxvt" — or it checks if there is a key definition for
kMwith the xterm-style
- if that check fails, (follow the
screensuppresses the escape sequences for the mouse and for the title.
So you can do it, but probably not as you want: you could set
screen wouldn't know about the mouse — or the title strings).
If you are really ambitious, you could modify
screen, to make the two features separately configurable.