From owner-freebsd-ports@FreeBSD.ORG Wed Jan 27 22:52:01 2010 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8113D106566B; Wed, 27 Jan 2010 22:52:01 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 48B3A8FC08; Wed, 27 Jan 2010 22:52:01 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.4/8.14.4) with ESMTP id o0RMpvT3060807; Wed, 27 Jan 2010 16:51:57 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Wed, 27 Jan 2010 16:51:54 -0600 (CST) From: "Sean C. Farley" To: Peter Jeremy In-Reply-To: <20100127070459.GB1889@server.vk2pj.dyndns.org> Message-ID: References: <4B5DDE95.4030606@gmail.com> <4B5DE8ED.8030507@FreeBSD.org> <20100127051140.GC9620@rwpc12.mby.riverwillow.net.au> <20100127070459.GB1889@server.vk2pj.dyndns.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: ports@FreeBSD.org, Doug Barton Subject: Re: FreeBSD Port: portmaster-2.17 (on console) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 22:52:01 -0000 On Wed, 27 Jan 2010, Peter Jeremy wrote: > On 2010-Jan-27 16:11:40 +1100, John Marshall wrote: >> On Mon, 25 Jan 2010, 10:54 -0800, Doug Barton wrote: *snip* >> (and not changing back to what they were) kind of spoils things for >> me :-) > > This is possible ("CSI 2 1 t" should report the current title) but > actually reading the returned "OSC L label ST" could be painful from > sh(1) (and I can't quickly get it to work). With zsh, I use a precmd() function that updates the title every time the prompt is about to appear, e.g., portmaster exits: precmd() { case ${TERM} in xterm*) print -Pn "\e]0;%n@%m\a" ;; esac } It comes in useful when using ssh to connect to different accounts. When I exit one account which had reset the title, the title changes back to the previous account. bash users may find something equivalent. Sean -- scf@FreeBSD.org