Comment 5 for bug 208837

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote : Re: [Bug 208837] Re: "Esc [ 1 8 t" Response doesn't match xterm.

Hi Pedro, sorry, I wasn't clear. The ^[ seen in the single quotes in my
examples is a literal escape character typed as `Ctrl-V Escape'. If
xterm is giving `^[[18t' back then that suggests a circumflex and open
bracket have been given. Try

    echo -n '@[18t' | tr @ \\033; sleep 1; echo

instead which can be cut-and-pasted. This uses tr(1) to turn the `@'
into an ASCII ESC.