* updated color sequences as variables
@ 2001-08-27 22:06 Russell Hoover
2001-08-27 23:41 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Russell Hoover @ 2001-08-27 22:06 UTC (permalink / raw)
To: zsh-users
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.,
and could be used (i.e., in a prompt) like this:
export prompt="$yellow($blue%n$yellow<$cyan@$yellow>$red%m$yellow($green%/$yellow)$red-$yellow> $white"
Would the coding in the variables translate -- updating to the new color scheme of
sequences -- to anything like the following?
red="%{$(\e[1;31m)%}"
if not, what would make sense here, and how would it be put into a prompt
string? I'd like to continue using a system like this, it makes creating
a prompt much easier.
--
// rj@panix.com //
City cops & state cops & national guard & bureau cops & tv cops & movie cops
& uniform & plainclothes cops & riot cops & cops on top of cops on top of
cops on top of cops: it's a world full of cops. -- Paleface
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-27 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-27 22:06 updated color sequences as variables Russell Hoover
2001-08-27 23:41 ` Bart Schaefer
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).