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.
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.