That escape sequence is part of the XTerm control set. When I did
I get nothing in either file, yet I can see the window title on the screen. Putty is returning it, but I can't seem to capture it.
the first character of that control string is an ESC and I entered it by doing a Cntrl-v first then the ESC key.