On 7/30/22 17:42, David G. Pickett wrote:
Any clues on how I got an xterm to mess up?
Presumably by sending that sequence of escape characters to xterm. You should be able to reproduce the problem by using grep --color=always and sending the output to a file F, and then by typing 'cat F'.
As this is not a grep bug, I'll close the grep bug report.