First, yes, I was using a ^G in the original tests and not a second ESC
-- sorry, my typo there.
I just tried it in a vanilla Lucid in a vm, and now I'm even more confused. The
standard user's .bashrc can change the titlebar, and here's what it does:
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}...@\h: \w\a\]$PS1"
If I check by running script, this is echoing
^[]0;u...@ubuntu: ~^gu...@ubuntu:~$
as I would expect.
However, if I try to do that myself with echo, it doesn't work:
echo '<ESC>]2;asdf^G'
(typing a ^V before I hit ESC and another one before ^G)
The titlebar doesn't change. I've tried with 0 and 2, with single quotes
and double, with bash, tcsh and zsh in case something had changed in the
way the shell echoes. No luck with any of them -- titlebar stays
unchanged.
Any idea what the difference is between doing this in a bash prompt vs.
typing echo in a shell? Typing echo used to work.
--
Can't set titlebar text with ESC sequence
https://bugs.launchpad.net/bugs/678322
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xterm in ubuntu.
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help : https://help.launchpad.net/ListHelp