For the record, I have the following in my .bashrc, and this works for me to
update the title (xtup) and icon (xnup) names on each command prompt:
xtup () {
echon \E]2\;$*\a ;
}
xnup () {
echon \E]1\;$*\a ;
}
updcwd()
{
if [ -z "$LogName" ]; then
LogName=`myid`
fi
echon '\E[0m'
xtup "${DEVENV}${WINDOW+" Scr#$WINDOW"} ${HOST} (${LogName}): $PWD
";
xnup "${DEVENV}${WINDOW+" Scr#$WINDOW"} ${HOST} (${LogName}): $PWD
";
#xnup "${HOST} (${LogName})";
}
export PROMPT_COMMAND='updcwd'
(NOTE: \E is escape, \a is bell (alert) and echon takes care of the variations
in echo impl between shells).
HTH,
Darren.
Matt Keenan wrote:
> Bill,
>
> What escape sequences are you using to set the title ?
>
> Matt
>
> Ghee Teo wrote:
>> Hmm, funny, I have also snv 104,
>> # cat /etc/product-info
>> product=Sun Java Desktop System
>> productAbbrv=Java_DS
>> release=4
>> build=104
>> buildType=devel
>> assembled=20 Nov 2008
>>
>> I don't see the problem. The set title under terminal, it shows correcly
>> on the panel.
>>
>> -Ghee
>>
>> Matt Keenan wrote:
>>> Bill,
>>>
>>> This was an issue where the WindowList applet in the panel was not
>>> responding to
>>> window title changes, however it was fixed, way back in snv_90 :)
>>>
>>> Bug : 6614086 : [libwnck] Window List applet label not updating.
>>>
>>> I am running snv_104 and I also see this issue, however I am only
>>> seeing it for
>>> gnome-terminal windows, for firefox with multiple tabs, switching to a
>>> different
>>> tab changes the window title and the corresponding title on the window
>>> list
>>> also changes. Thunderbird reacts correctly aswell when switching folders.
>>>
>>> So this looks like an issue with gnome-terminal only. Probably best
>>> log a bug
>>> and reference the above bug.
>>>
>>> cheers
>>>
>>> Matt
>>>
>>> Bill Shannon wrote:
>>>
>>>> I upgraded from snv_98 to snv_101b.
>>>>
>>>> I set the title of my gnome-terminal windows using an escape sequence.
>>>> The title used to appear in the panel button corresponding to each
>>>> active terminal window. Now the panel buttons just say "Terminal".
>>>> Is this a known bug?
>>>> _______________________________________________
>>>> desktop-discuss mailing list
>>>> desktop-discuss at opensolaris.org
>>>>
>>> _______________________________________________
>>> desktop-discuss mailing list
>>> desktop-discuss at opensolaris.org
>>>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org