FreeBSD Port: portmaster-2.17 (on console)

Sean C. Farley scf at
Wed Jan 27 22:52:01 UTC 2010

On Wed, 27 Jan 2010, Peter Jeremy wrote:

> On 2010-Jan-27 16:11:40 +1100, John Marshall <john.marshall at> wrote:
>> On Mon, 25 Jan 2010, 10:54 -0800, Doug Barton wrote:


>> (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:

 	case ${TERM} in
 			print -Pn "\e]0;%n@%m\a"

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.

scf at

More information about the freebsd-ports mailing list