Date: Wed, 27 Jan 2010 16:51:54 -0600 (CST) From: "Sean C. Farley" <scf@FreeBSD.org> To: Peter Jeremy <peterjeremy@acm.org> Cc: ports@FreeBSD.org, Doug Barton <dougb@FreeBSD.org> Subject: Re: FreeBSD Port: portmaster-2.17 (on console) Message-ID: <alpine.BSF.2.00.1001271640250.24776@thor.farley.org> In-Reply-To: <20100127070459.GB1889@server.vk2pj.dyndns.org> References: <4B5DDE95.4030606@gmail.com> <4B5DE8ED.8030507@FreeBSD.org> <20100127051140.GC9620@rwpc12.mby.riverwillow.net.au> <20100127070459.GB1889@server.vk2pj.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Jan 2010, Peter Jeremy wrote: > On 2010-Jan-27 16:11:40 +1100, John Marshall <john.marshall@riverwillow.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1001271640250.24776>