zsh-workers
 help / color / mirror / code / Atom feed
From: Jim <linux.tech.guy@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: devs <zsh-workers@zsh.org>
Subject: Re: prompt colors bug? also possible feature add
Date: Wed, 23 Aug 2023 07:42:18 -0500	[thread overview]
Message-ID: <CA+rB6GKkqK5vLB5uWyP4yU-GoOYoktVWxxiBKsoQT8K-WXpv-Q@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7YZ-mrpB-ofHROLpp+125fQkqZqEeYsR8KSGWNZiNH_Ww@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2450 bytes --]

On Tue, Aug 22, 2023 at 11:21 PM Bart Schaefer <schaefer@brasslantern.com>
wrote:

> On Tue, Aug 22, 2023 at 5:37 PM Jim <linux.tech.guy@gmail.com> wrote:
> >
> > Not sure if I'm barking up the wrong tree ...
>
> Not exactly ... previously I was pointing out that promises made by
> the colors function have nothing to do with promises made by the
> builtin prompt code.
>
> > I guess the next questions is, does it only work with
> > fade?
>
> That's the only one that references it directly rather than by user
> configuration, but it's the reason it appears in the colors arrays.
>
>
The more I look into "functions/Prompts" and especially *fade and fire
there is no
change in color intensity or the use of "gray". It all has to do with the
background
color and the use of 4 block characters.  "Full Block" is a "solid" color
block.  The
other three blocks have dots as "fillers" with the background showing
through the
open spaces, they are "light shade", "medium shade" and "dark shade".
Because of
the background, this gives the illusion of four shades of a color.  Gray
isn't even
used AFAIKT. This is easier to see with some colors over others. When grey
is
specified, the color defaults to the default color of the virtual terminal
you are using.

I also thought  that prompts just supported the first 16 colors, <0-7>
normal
intensity, and <8-15> high intensity/bright.  But testing showed that
colors are
whatever the virtual terminal/TERM can support. <16-231> are all the 6x6x6
colors and <232-255> are the 24 shades of gray/grey. 'adam2' and 'oliver'
support bold by using the word bold in the output string. At least 'adam2'
and
'bigfade' allow a limited number of color changes from the command line.
One other thing, at least 'adam2' is set up to support '8bit' graphic
characters
by specifying '8bit' on the command line.

If anyone is interested, bigfade is a good one to test with. Help(-h) shows
the
following:

     prompt bigfade [<fade-bar> [<userhost> [<date> [<cwd>]]]]

To test instead of "prompt" use "prompt_preview_theme" .

example:
prompt_preview_theme bigfade grey red 75 148

Substitute the four args with whatever combinations of colors you want.

<black red green yellow blue magenta cyan white gray grey> or <0 .. 255 >

Hope this can be helpful to someone. I've learned a lot doing this.

Regards,

Jim

P.S. Bart, thanks for your input.

[-- Attachment #2: Type: text/html, Size: 3557 bytes --]

  reply	other threads:[~2023-08-23 12:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-17 22:18 Jim
2023-08-17 23:23 ` Bart Schaefer
2023-08-23  0:37   ` Jim
2023-08-23  4:20     ` Bart Schaefer
2023-08-23 12:42       ` Jim [this message]
2023-08-24  3:45         ` Bart Schaefer
2023-09-20  1:15           ` Jim
2023-09-20  1:56             ` Bart Schaefer

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=CA+rB6GKkqK5vLB5uWyP4yU-GoOYoktVWxxiBKsoQT8K-WXpv-Q@mail.gmail.com \
    --to=linux.tech.guy@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).