Re: Gnome-Terminal : smallf feature request



Changing the title to your cwd is not too difficult, and does not require
any GTK+ programming.  Gnome-terminal understands the standard xterm title
changing escape sequence.  So for bash, you might want to set your prompt
to this:
  PS1="\[\033]0;\u@\h: \w\007\]$PS1"

That will put user, host and directory in the title, and preserve your
normal prompt.

James.

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


On Fri, 16 Jul 1999, Tim Hockin wrote:

> It would be super-cool if gnome term could do this:
> 
> right-click, select "Set Titlebar", get a popup - type a title, hit OK:
> 	==> Title changes
> 
> A similar easy feature for BG color would be great.
> 
> Lastly, if I could tell the title bar to be `pwd` or '$_' or something.
> basically, a title that reflected the current path and/or file open:
> 
> e.g. "/usr/src/linux:  vi kernel/sched.c"  would be infinately more helpful
> than "Terminal"
> 
> 
> I'd hack it in myself, but I don't know GTK well enough, or really have the
> time to learn right now.  Maybe I will, but if someone beats me there,
> great!  The first two should be easy - the third a bit less so.
> 
> Tim
> 
> 
> -- 
>         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]