Re: gnome-terminal



This can't be implemented from within gnome-terminal in a portable
fassion.

However, gnome-terminal supports the xterm escape sequences for changing
the title bar, so it is possible to do this with the cooperation of the
shell.

Try putting the following at the end of your ~/.bashrc file:
  if [ "$TERM" = xterm ]; then
    export PS1="\[\033]0;\u@\h: \w\007\]$PS1"
  fi

You may have to adjust this for other shells.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Fri, 27 Aug 1999, Mikael Hermansson wrote:

> Hello!
> 
> I don't know if this is possible but I have a option I want to implement
> in gnome-terminal.
> 
> Why not let the window title has the same name as the
> directory/application its points to, for example:
> 
> When change directory with cd command it also should change the
> windowtitle and when gnome-terminal start a new program the title changes
> to applications name...
> 
> Yes I know there is an option(-t) to set the title but I want the
> terminal to automatic change the title when it's already is running :-) 
> 
> Is it possible to implement this?
> 
> Greats
> 
> MikeH
>  
> 
> ---
> 
> Check out my homepage at (under heavy reconstruction): 
> http://www.bahnhof.se/~mikeh	
> 
> Email: mikeh@bahnhof.se
> international Phone 46-44-126995
> Sweden Phone: 044-126995
> ICQ: Error fix later
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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