From owner-freebsd-gnome@FreeBSD.ORG Sun Jun 21 02:46:13 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21E5B1065672 for ; Sun, 21 Jun 2009 02:46:13 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from mail-px0-f203.google.com (mail-px0-f203.google.com [209.85.216.203]) by mx1.freebsd.org (Postfix) with ESMTP id EA0948FC13 for ; Sun, 21 Jun 2009 02:46:12 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: by mail-px0-f203.google.com with SMTP id 41so1882221pxi.3 for ; Sat, 20 Jun 2009 19:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bePvCRn4salS0xz0i+WeOJf4m4Ok0T2yYkcoouF4F0U=; b=hFbakcra7VaevJ+zXv7T2LT1+dYt5bcX4WWICKXQHHmx25rGwDtkjgc+612uF8fNzc DRBPCvp33upQOFDqqL8eo4B1TfaVKmK6G0EqgY2m8mF8zsrdWXwGg08aTCaV9MzXIrll AUL6ziG689YJo7wy+/CCtxTItgycIBfQvqdS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vQ3BWMdJLn6zSEg7VOT+2sTcCZ0hkkr83QN7amNJCYYPa0N/1mC+7TZUa+VvI3Xwac ux5ztsvVTEs87/TSie+poh/Rd4HIhkRS4Lrs+PnHwLHmlHjp8lMTXdpcQVfMabnFdVoC 5QqNeTXxP3Idas5mj0NLnZG+mLfxf4dXKF4Wk= MIME-Version: 1.0 Received: by 10.142.43.19 with SMTP id q19mr2013210wfq.305.1245552372656; Sat, 20 Jun 2009 19:46:12 -0700 (PDT) In-Reply-To: <1245541353.75526.7.camel@shumai.marcuscom.com> References: <1245541353.75526.7.camel@shumai.marcuscom.com> Date: Sun, 21 Jun 2009 14:46:12 +1200 Message-ID: From: James Butler To: Joe Marcus Clarke Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-gnome@freebsd.org Subject: Re: program title in gnome-terminal X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 02:46:13 -0000 On 2009-06-21, Joe Marcus Clarke 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