Date: Sun, 21 Jun 2009 14:46:12 +1200 From: James Butler <sweetnavelorange@gmail.com> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: freebsd-gnome@freebsd.org Subject: Re: program title in gnome-terminal Message-ID: <f0dd9eb90906201946k4737ecbag18c5e854dcead446@mail.gmail.com> In-Reply-To: <1245541353.75526.7.camel@shumai.marcuscom.com> References: <alpine.BSF.2.00.0906151645370.4899@yokozuna.lan> <1245541353.75526.7.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2009-06-21, Joe Marcus Clarke <marcus@marcuscom.com> wrote: > On Mon, 2009-06-15 at 16:50 +0200, Marco Beishuizen wrote: >> Hi, >> >> Whenever I run a program in gnome-terminal, it doesn't display the program >> >> name in the title bar automatically (it says "Terminal" only). I always >> have to set the title by hand. Is there a way that this can be done >> automatically, so that the title says for example "Alpine - Terminal", >> instead of "Terminal" only. > > There are lot of hits on Google about dynamically settign the > gnome-terminal title, but none that I found were specific to tracking > the running program. I think this needs to be built into the program > being run. For example, I know vim can do this, and does. If you're using [t]csh, you can put something like this in your .chsrc: if ( $TERM =~ xterm* ) then alias postcmd 'printf "\033]\;\!#\033\\"' alias precmd 'printf "\033]\;$PWD\033\\"' endif Unfortunately this is maybe the only good thing about tcsh. If bash has something similar, I can't find it in the manpage. -James
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f0dd9eb90906201946k4737ecbag18c5e854dcead446>