Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt coloring question
- X-seq: zsh-users 13025
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Prompt coloring question
- Date: Sun, 13 Jul 2008 21:27:12 +0200
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sbSs38BlXWqWTtMrcJDSWjs2K6GSXO1Kd6c7H8pXCM8=; b=aDCwDJEFqwuvy1PZXvNmw7PiAgXSbuK3NZqPVrlCYsfMcBQa7ExXL2YvtYxJvPYAbU ODIlPm3T/ZUvFdSJQHYJRp3vlhccYthdzskX79MJW/fNYOKXVIYkvd5u2DjXatUI4eo2 Jb9THyTfXJ+yYdJtqRtvrEEDa8klBuofYHmtw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=t6c72YQpz+pKdcMEWzSsZrGJ8H7DV2I/HxCJ4NRP+5JDpQ/AmAOaxaH8cc7NOgo7Y3 /39Z6xMQzaAi7OoHYQjosx5fOEEqG8Qi1gr0QTj/uTIu1KjYcabz5ziDxM26m+0ANkfx U6qz7maFAbX8aZbjeHqUV8c6qpmmhq/zieH2k=
- In-reply-to: <080713105246.ZM3550@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807121443s1affa065n5451a763a4e70374@xxxxxxxxxxxxxx> <20080713022342.GA51466@xxxxxxxxxxxxxxxxxxxx> <2d460de70807130637w3dd3cce3l695ed4c28d758ca7@xxxxxxxxxxxxxx> <080713105246.ZM3550@xxxxxxxxxxxxxxxxxxxxxx>
On Sun, Jul 13, 2008 at 19:52, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> $'%{\e[1;32m%}' is not "light green", it's "bold green" -- the "1" is
> bold, the "32" is green.
I just tried again, at least konsole shows the colors in a lighter shade
when they are prefixed by 1;, perhaps because that is konsole's way
to show bold fonts, I don't, know.
> Similarly, $'%{\e[0;31m%}' is not "red", it's
> "turn everything else off" (0) and then "red" (31). That first "0"
> disables %S before it has a chance to do anything. If you were to use
> %S%{$'\e[31m'%} without the "0;" it would work as expected.
Thanks!
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author