On Sat, 6 Feb 2010, [email protected] wrote:
Warren Block <[email protected]> wrote:
What's the sequence for reading the terminal title?
If I remembered it I'd have included it :)
I did some unsuccessful searching for "query xterm title" earlier today.
The first 3 results from Googling "xterm escape sequences" are
rtfm.etla.org/xterm/ctlseq.html
That one has it:
printf "\033];badexample\007"
This sets the title in both xterm and Terminal.
printf "\033[21;t\n"
That brings back the title in Terminal, with a leading "l"... and in the
keyboard buffer. Doesn't work in xterm, possibly because xterm is
pickier about the exact sequence.
-Warren Block * Rapid City, South Dakota USA
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"