[RHCE] xterm title bar

Frank Pittenger rhce@trilug.org
Fri, 23 Aug 2002 11:25:57 -0400 (EDT)


Thanks all!  One more piece of trivia, the zero after the right-bracket means
to push the text into the xterm titlebar and icon name (if you are using icons
and the window manager permits this).  Replacing the zero with a one only
changes the icon text and replacing it with a two only changes the titlebar
text.  (I did say it was trivia, didn't I?)

Frank

On 23-Aug-02 at 10:55, John F Davis (johndavi@us.ibm.com) wrote:
> 
> Hello
> 
> And with that, here is the magic incantation.  A little different from
> their example since who cares about showing bash at the end of the prompt.
> 
> case $TERM in
>       xterm*)
>             PS1="\[\033]0;\u@\h: \w\007\]\W\\$ "
>             ;;
>       *)
>             PS1="u@\h:\w\\$ "
>             ;;
> esac
> 
> So, you could call this title.sh as well and change the PS1 line to :
> 
> PS1="\[\033]0;$1 \u@\h: \w\007\]\W\\$ "
> 
> 
> and do the same thing.
> 
> . title.sh debug (notice the . for in this current shell.)
> 
> xterm prompt is: debug davis@binune: ~/bin
> PS1 prompt is: bin$
> 
> JD
> 
> 
> "Holton, Steven [NC1:JR04:EXCH]" <sholton@nortelnetworks.com>@trilug.org on
> 08/23/2002 06:37:26 AM
> 
> Please respond to rhce@trilug.org
> 
> Sent by:    rhce-admin@trilug.org
> 
> 
> To:    rhce@trilug.org
> cc:
> Subject:    Re: [RHCE] xterm title bar
> 
> 
> 
> John F Davis wrote:
> 
> > I'm still waitng for the xterm prompt tip in PS1 to make it to
> > this list..
> 
> http://www.google.com/search?q=xterm+howto&ie=ISO-8859-1&hl=en&meta=
> 
> --
> Steve Holton                                       ESN 35-18811
> _______________________________________________
> RHCE@trilug.org Mailing list
>    http://www.trilug.org/mailman/listinfo/rhce
> Archives for the RHCE list:
>    http://www.trilug.org/pipermail/rhce
> 
> 
> 
> 
> _______________________________________________
> RHCE@trilug.org Mailing list
>    http://www.trilug.org/mailman/listinfo/rhce
> Archives for the RHCE list:
>    http://www.trilug.org/pipermail/rhce