[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: setting xterm/rxvt window names



On Wednesday 18 September 2002 09:02, Michael K O'Brien wrote:
> Hola~
>
> >-- On Wed, Sep 18, 2002 at 04:36:35PM +0100, % wrote:
> >
> > On Wed, 18 Sep 2002, Michael K O'Brien wrote:
> > > Hola~
> > >
> > > About two weeks ago, I found that I could no longer set the window and
> > > icon title of an xterm or rxvt window with the following script:
> > >
> > >     echo -n "\033]0;$*\007"
> >
> > Try echo -ne, make sure you haven't got PROMPT_COMMAND set to something
> > that overrides it, and haven't embedded a similar sequence in PS1 either.
>
> Thanks, but the -ne didn't fix it. I don't have PROMPT_COMMAND or PS1 set
> to anything.
>

$* resolves to "the rest of the command line arguments" last I checked.  So 
you look to be setting the title to nothing.  In fact when I run this command 
(echo -ne) in an rxvt under blackbox the title becomes "Unnamed".

As to why this changed recently, it appears to have been working improperly up 
to now.  Without the -e it should not be reading the escape sequences.

Shaleh
blackbox maintainer



Reply to: