Can't set titlebar text with ESC sequence
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xterm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xterm
I used to be able to change the titlebar inside an xterm window with: echo 'ESC]2;New titleESC' (substitute ^V and the ESC key to insert escape characters; I used a shell alias).
This no longer works, and does nothing; the title remains 'xterm'.
After reading bug 408496, I've tried adding in .Xdefaults:
XTerm*utf8Title: true
XTerm*allowTitl
but it doesn't help. I've also tried it with XTerm*utf8Title: false since I'm not really clear what that resource is supposed to do. (I'm sending plain ascii for the title, no extra UTF-8 characters, in any case.)
The color prompt code in /root/.bashrc doesn't set the title either:
PROMPT_
Is there a new escape sequence for setting the prompt?
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xterm 256-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: i386
Date: Sun Nov 21 14:21:04 2010
DkmsStatus: Error: [Errno 2] No such file or directory
MachineType: ECS G41T-M5
ProcCmdLine: root=/dev/sda3 ro
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=
SourcePackage: xterm
dmi.bios.date: 08/05/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080015
dmi.board.
dmi.board.name: G41T-M5
dmi.board.vendor: ECS
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: ECS
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: G41T-M5
dmi.product.
dmi.sys.vendor: ECS
system:
distro: Ubuntu
codename: lucid
architecture: i686
kernel: 2.6.32-
On Sun, 21 Nov 2010, Akkana Peck wrote:
> Public bug reported: eOps: true
>
> Binary package hint: xterm
>
> I used to be able to change the titlebar inside an xterm window with:
> echo 'ESC]2;New titleESC' (substitute ^V and the ESC key to insert
> escape characters; I used a shell alias).
>
> This no longer works, and does nothing; the title remains 'xterm'.
>
> After reading bug 408496, I've tried adding in .Xdefaults:
> XTerm*utf8Title: true
> XTerm*allowTitl
> but it doesn't help. I've also tried it with XTerm*utf8Title: false since I'm not really clear what that resource is supposed to do. (I'm sending plain ascii for the title, no extra UTF-8 characters, in any case.)
Perhaps that's because the Ubuntu package has
*utf8Title: true
so the pattern is already occupied in the resource database.
To override it, you'd have to give a more-specific pattern,
e.g., using "." rather than "*".
(If it's not that simple, I'll dig deeper)
> The color prompt code in /root/.bashrc doesn't set the title either: COMMAND= 'echo -ne "\033]0; ${USER} @${HOSTNAME} : ${PWD/$ HOME/~} \007"'
> PROMPT_
>
> Is there a new escape sequence for setting the prompt?
no - though there is also the allowTitleOps resource from 2007,
with the corresponding menu entry. I don't think anyone's setting
that in a package.
-- invisible- island. net -island. net
Thomas E. Dickey
http://
ftp://invisible