backup terminal title

Matthew Seaman m.seaman at
Sat Feb 6 14:47:35 UTC 2010

On 06/02/2010 13:55, Dominic Fandrey wrote:

> Nice, but I need something that works with base system
> components. Like an escape sequence that causes the terminal
> to reset its title.

Something like this for tcsh:

set prompt = '%{\033]0;%n@%m:%/\007%}%B%m%b:%c03:%# '

Sets the window title to 'user at hostname:/current/directory'.  Porting
this escape sequence to other shells left as an exercise for the student.



Dr Matthew J Seaman MA, D.Phil.              7 Priory Courtyard, Flat 3
Black Earth Consulting                       Ramsgate
                                             Kent, CT11 9PW
Free and Open Source Solutions               Tel: +44 (0)1843 580647

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list