From: Bart Schaefer <schaefer@brasslantern.com>
To: Russell Hoover <rj@panix.com>, zsh-users@sunsite.dk
Subject: Re: updated color sequences as variables
Date: Mon, 27 Aug 2001 16:41:30 -0700 [thread overview]
Message-ID: <010827164130.ZM1043@candle.brasslantern.com> (raw)
In-Reply-To: <20010827180638.A828@panix.com>
On Aug 27, 6:06pm, Russell Hoover wrote:
>
> I've been using a group of colors-put-into variables that someone put on
> this list a while back, which (in the old color-coding scheme) looked like
> this:
>
> red="%{$(echo -n '\e[1;31m')%}"
> green="%{$(echo -n '\e[1;32m')%}" etc.,
Take a look at the "colors" function that is included with the zsh 4.0.x
distributions. Look for "colors" in the index of the texinfo zsh manual,
or read "man zshcontrib".
> Would the coding in the variables translate -- updating to the new color scheme of
> sequences -- to anything like the following?
>
> red="%{$(\e[1;31m)%}"
You'd want
red=$'%{\e[1;31m%}'
Or
autoload colors
colors
red="%{${fg[red]}%}"
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2001-08-27 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-27 22:06 Russell Hoover
2001-08-27 23:41 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010827164130.ZM1043@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=rj@panix.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).