Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh and color
- X-seq: zsh-users 19
- From: Dave Sainty <David.Sainty@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: zsh and color
- Date: Thu, 08 Jun 1995 18:14:43 +1200
- In-reply-to: Your message of "Thu, 08 Jun 1995 11:07:27 +1000." <9506080107.AA09120@xxxxxxxxxxxx>
Andrew Cosgriff writes:
> Richard Coleman <coleman@xxxxxxxxxxxxxxx> wrote:
>
> >I don't forsee this happening any time soon. There are too many other
> >things still in the pipeline that need to be done. Also, I don't like
> >the idea of adding features to the baseline that would only be used by
> >people on a particular OS.
>
> It's not actually OS-specific - the patch to gnu's ls uses ANSI escape
> sequences to set the colors
Colour escape sequences are also avaliable from termcap/terminfo
databases, although they are rarely documented even for colour capable
terminal types. So colour can be added quite generically, with no
special hacks (setopt use_ansi_colour, although you might want a
setopt use_colour). And somehow you need to specify what colours mean
what.
Personally, I think this can be implemented best in compctl, e.g. If
you complete with the following rule, colour the completed word to
colour x.
Doesn't sound too hard either....
Messages sorted by:
Reverse Date,
Date,
Thread,
Author