From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 06:47:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0ED016A4CE for ; Mon, 2 Feb 2004 06:47:21 -0800 (PST) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F6A743D1D for ; Mon, 2 Feb 2004 06:47:19 -0800 (PST) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: vCcn6qxtjjPiMlkdhg1Wcg 1075733201 Received: from [206.26.199.146] (unknown [206.27.244.214]) by www.fastmail.fm (Postfix) with ESMTP id 468BD4CC5DB; Mon, 2 Feb 2004 09:46:40 -0500 (EST) Received: from nkinkade by [206.26.199.146] with local (Exim 4.12) id 1AnfL7-000D08-00; Mon, 02 Feb 2004 08:46:17 -0600 Date: Mon, 2 Feb 2004 08:46:17 -0600 From: Nathan Kinkade To: Didier WIROTH Message-ID: <20040202144617.GL3937@npkfbsd> Mail-Followup-To: Didier WIROTH , freebsd-questions@freebsd.org References: <0HSG002S0E0D8R@mail.etat.lu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HaDSJYnsYzHewVa" Content-Disposition: inline In-Reply-To: <0HSG002S0E0D8R@mail.etat.lu> User-Agent: Mutt/1.4.1i Sender: Nathan Kinkade cc: freebsd-questions@freebsd.org Subject: Re: customize set prompt question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 14:47:21 -0000 --+HaDSJYnsYzHewVa Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 02, 2004 at 11:48:13AM +0100, Didier WIROTH wrote: > Hi, >=20 > I would like to colorize this prompt: > set prompt=3D"@%m:%~# " >=20 > How do I have to modify the prompt so that the entire prompt is of "red" > color.=20 > Only the prompt should be red, not what is typed or the results of any > output. >=20 > many thanks Does csh understand ansi escape sequences? If so you could try this: $ set prompt=3D"\[\e[1;31m\]@%m:%~# \[\e[m\]" I don't know if this will work in csh, but it definitely works in bash. For bash it would be: $ export PS1=3D"\[\e[1;31m\]@%m:%~# \[\e[m\]" Nathan --=20 gpg --keyserver pgp.mit.edu --recv-keys D8527E49 --+HaDSJYnsYzHewVa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQFAHmK5O0ZIEthSfkkRApI/AJoDfvVJ8fhZsbzoh7sztVEkYc4KbACcCjeW W+DksWlwvHM6hRQVrEWndLI= =6ols -----END PGP SIGNATURE----- --+HaDSJYnsYzHewVa--