Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Feb 2010 14:47:15 +0000
From:      Matthew Seaman <m.seaman@black-earth.co.uk>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        Matthias Apitz <guru@unixarea.de>, freebsd-questions@freebsd.org
Subject:   Re: backup terminal title
Message-ID:  <4B6D80F3.7050707@black-earth.co.uk>
In-Reply-To: <4B6D74EF.2090106@bsdforen.de>
References:  <4B6D62B3.4070702@bsdforen.de>	<20100206125554.GA2173@current.Sisis.de> <4B6D74EF.2090106@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig883F72902B5F23C7F961E4B6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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 =3D '%{\033]0;%n@%m:%/\007%}%B%m%b:%c03:%# '

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


	Cheers,

	Matthew

--=20
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


--------------enig883F72902B5F23C7F961E4B6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkttgP8ACgkQ8Mjk52CukIw4lQCffN5d7YahG3rhwzPW/TIld0sP
/P0AoIkAHP/b6quAVYW0N/aB2WvcoEgF
=Tf1P
-----END PGP SIGNATURE-----

--------------enig883F72902B5F23C7F961E4B6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B6D80F3.7050707>