* Colors
@ 1996-09-20 2:03 Scott RoLanD
1996-09-20 9:29 ` Colors Bruce Stephens
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Scott RoLanD @ 1996-09-20 2:03 UTC (permalink / raw)
To: zsh-users
I just started using color-ls with a color-xterm last month, and I'm
addicted to it now.
But now when I use tab compeltion in zsh for cd and ls it feels weak.
What I'd like is for:
less d<tab>
to look exactly the same as:
ls -d d*
Is it in theory possible to do the above with compctl? If not how
might we add it?
Zsh currently supports making the prompts bold, etc. Has anyone played
with trying to give them certain colors?
Color hungry,
RoLanD
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colors
1996-09-20 2:03 Colors Scott RoLanD
@ 1996-09-20 9:29 ` Bruce Stephens
1996-09-20 11:24 ` [Q] how to set stty on HPUX 10.01 with zsh 3.0.0 Aubert Pierre
1996-09-20 10:03 ` Colors Richard Lister
1996-09-20 15:23 ` Colors Greg J. Badros
2 siblings, 1 reply; 6+ messages in thread
From: Bruce Stephens @ 1996-09-20 9:29 UTC (permalink / raw)
To: Scott RoLanD; +Cc: zsh-users
> I just started using color-ls with a color-xterm last month, and I'm
> addicted to it now.
>
> But now when I use tab compeltion in zsh for cd and ls it feels weak.
>
> What I'd like is for:
> less d<tab>
>
> to look exactly the same as:
> ls -d d*
>
> Is it in theory possible to do the above with compctl? If not how
> might we add it?
Not with compctl, but somebody has a patch to do it. It was rejected
for the standard release in favour of (one day) dynamically loadable
extensions to do this kind of thing. I don't remember the URL for the
patches, unfortunately. I'm sure somebody can, or you could search the
mail archives.
> Zsh currently supports making the prompts bold, etc. Has anyone played
> with trying to give them certain colors?
Sure. Look at the %{..%} codes. For example, I have
PS1="%{$(print -n '\e[46;34;1m')%}%@, %D{%A %d %B} %m%#%{$(print -n '\e[m')%} "
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colors
1996-09-20 2:03 Colors Scott RoLanD
1996-09-20 9:29 ` Colors Bruce Stephens
@ 1996-09-20 10:03 ` Richard Lister
1996-09-20 15:23 ` Colors Greg J. Badros
2 siblings, 0 replies; 6+ messages in thread
From: Richard Lister @ 1996-09-20 10:03 UTC (permalink / raw)
To: shr; +Cc: zsh-users
From: shr@s3.com (Scott RoLanD)
Subject: Colors
Date: Thu, 19 Sep 1996 19:03:41 -0700 (PDT)
> I just started using color-ls with a color-xterm last month, and I'm
> addicted to it now.
> Zsh currently supports making the prompts bold, etc. Has anyone played
> with trying to give them certain colors?
Sure. This is what I do:
if [ "$TERM" = "xterm" ] ; then
ESC="^["
NORMAL="%{${ESC}[0m%}"
YELLOW="%{${ESC}[33m%}"
BLUE="%{${ESC}[34m%}"
PS1="${BLUE}%m${NORMAL}%(#.#.$) "
RPS1=" ${YELLOW}%~${NORMAL}"
fi
Ric
Richard J. Lister, Research Assistant
Neural Computing Research Group, Aston University
r.j.lister@aston.ac.uk
http://www.ncrg.aston.ac.uk/~listerrj/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Q] how to set stty on HPUX 10.01 with zsh 3.0.0
1996-09-20 9:29 ` Colors Bruce Stephens
@ 1996-09-20 11:24 ` Aubert Pierre
1996-09-20 12:57 ` Zefram
0 siblings, 1 reply; 6+ messages in thread
From: Aubert Pierre @ 1996-09-20 11:24 UTC (permalink / raw)
To: zsh-users
Hello,
I work on an HP under HPUX 10.01 in xterm (not hpterm).
the command ^R ^P ^A ... doesn't work but they work under bash,
then I think the problem is related to zsh, do you have any idea ?
Ciao Pierre.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Q] how to set stty on HPUX 10.01 with zsh 3.0.0
1996-09-20 11:24 ` [Q] how to set stty on HPUX 10.01 with zsh 3.0.0 Aubert Pierre
@ 1996-09-20 12:57 ` Zefram
0 siblings, 0 replies; 6+ messages in thread
From: Zefram @ 1996-09-20 12:57 UTC (permalink / raw)
To: Aubert Pierre; +Cc: zsh-users
>I work on an HP under HPUX 10.01 in xterm (not hpterm).
>the command ^R ^P ^A ... doesn't work but they work under bash,
>then I think the problem is related to zsh, do you have any idea ?
Could you send us the output of the `reporter' script, please?
-zefram
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colors
1996-09-20 2:03 Colors Scott RoLanD
1996-09-20 9:29 ` Colors Bruce Stephens
1996-09-20 10:03 ` Colors Richard Lister
@ 1996-09-20 15:23 ` Greg J. Badros
2 siblings, 0 replies; 6+ messages in thread
From: Greg J. Badros @ 1996-09-20 15:23 UTC (permalink / raw)
To: Scott RoLanD; +Cc: zsh-users
On Thu, 19 Sep 1996, Scott RoLanD wrote:
> I just started using color-ls with a color-xterm last month, and I'm
> addicted to it now.
>
> But now when I use tab compeltion in zsh for cd and ls it feels weak.
>
> What I'd like is for:
> less d<tab>
>
> to look exactly the same as:
> ls -d d*
>
> Is it in theory possible to do the above with compctl? If not how
> might we add it?
>
> Zsh currently supports making the prompts bold, etc. Has anyone played
> with trying to give them certain colors?
>
As for the completion listing's being colorized, I posted the patch here a
couple weeks ago. It's still at my web site:
http://www.cs.duke.edu/~gjb/patches/ZshColorPostPrompt.patch
Be sure to read ZSh3-Patches.Announce.txt in the same directory.
Let me know if you've problems. Enjoy.
Greg J. Badros
gjb@cs.duke.edu
http://www.cs.duke.edu/~gjb
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1996-09-20 16:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-20 2:03 Colors Scott RoLanD
1996-09-20 9:29 ` Colors Bruce Stephens
1996-09-20 11:24 ` [Q] how to set stty on HPUX 10.01 with zsh 3.0.0 Aubert Pierre
1996-09-20 12:57 ` Zefram
1996-09-20 10:03 ` Colors Richard Lister
1996-09-20 15:23 ` Colors Greg J. Badros
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).