From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1407 invoked from network); 23 Aug 2023 12:42:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Aug 2023 12:42:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692794579; b=KAnWfa3XvV4pUjexqnUGLO8/MvYKsTDDtbNfwE0iRuw6OS+Lc5JUEulavjnXtDkwgjEOTpE0N1 IXMVpcp25Z9I6v3sv7Z+r6EnQ08O4xywBOucv8te73O6FiuD8ut1t2jUkJUjZiLcGPlxzdP0rt /YQJ3earQh0Qzsg1Wm8ZsT9VLqxc8nWhXR+GkSxw2x7WkPWtkwDpsOW+VoD16xV4xQCw1QLLOJ d/t++4mZh22HAm9KKkIy8YUcEcqJTZqBTpqn2dyKXmfSSamEhnyJbNe2mVEN8EjCD2IG+vz2tp 8agFYbCS1J2cUaQ0mOoB5fs6IYatlGpHQxiAi/9xGza1Cg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pj1-f42.google.com) smtp.remote-ip=209.85.216.42; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1692794579; bh=BMR1yNdvDWgChNcJHirRbrVPRV6bNl66uA/qFJ63JTM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:Reply-To: In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=R5+s4Bv0+veccgvriFFdhNDsddF0yYKV97ATbNprTjMmNSHOZjr8g6tfxaGJMpMcfVMLD+DOU7 RaitIV0PHTCdcC9BQHwopgPf5OPFWUU5AdAYMi/2SEM0wKpd0inYy9V9rOQRG6OM7ijq8sfuYZ hKdOcW/CbBIIQQpXNUWxBHdA0ljweQo+RXhXVC0gpbtf5Y6l4jZ5hgiXOZBmX/pnIgV0gsTPrU HP2wrAknlar97jmrXp48gkZ/0xVFn2LxY3GLcG0ycKaFfImvjvxiFEkaFoo/FIrN+lZEzUW0G1 G0yYXyzPpJfArZyICW22ngvD7OZ5hzj08GVIb8k5CC3Zbg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:Reply-To:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=+g4gZH625S0gXedtPm/ysP71OZwLP8+XRKomfcjxyB0=; b=h352kSUlUHDRbqV7V1vFk68Eh/ xh2s3owTheNoXyUbJLU3IaT2d6NFxYFy4n2HqAB4E0hV8Vv/3D1PYud7ksra1nVC92khuEh7sfebm EUIwKdodB88kZ8eek5a0hpy3HuSK9n633jrBkgLNL4NtoOoRWcWrIf9ucWbgK5dr618lPJJV0uhhi wErNiXRwHJQSioS+WGEp29CbYYhx3uWQ+Nu16yMEPbV04FPtx9nA9x4SJKXZNuWZ8H8XGSQLk96Vo 7Ku+4Wk32vfE7nXk7bTiJbU402oPIMKcmHGpZ2pRU2RF2sFrB859e3CUPYLMfFXrGcqZ9HJlvQY/q n9WP+xAA==; Received: by zero.zsh.org with local id 1qYnCJ-0002xi-QE; Wed, 23 Aug 2023 12:42:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pj1-f42.google.com) smtp.remote-ip=209.85.216.42; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pj1-f42.google.com ([209.85.216.42]:44323) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qYnC0-0002el-D9; Wed, 23 Aug 2023 12:42:39 +0000 Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-26d4e1ba2dbso3117168a91.1 for ; Wed, 23 Aug 2023 05:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692794555; x=1693399355; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+g4gZH625S0gXedtPm/ysP71OZwLP8+XRKomfcjxyB0=; b=kCTwiinA6dIs5B5ZZB7LQAML9QQxEg42R4ZQ5IDqUyxpQ3P7pJmkvCYPhioSMjP1rF ylV+Vo08bg89oYDGp3l3f+hBQt7xUtP4Vhf6JM3fPXNkz7oI4xXjQGq3p+HVl/4APGmU bd82OPP7C3app0QCRSY+8vbMCNqAYrmMge2bhMmRsZfk38YpQyQfhPZSjHVYwaHXyZkc 3H4EW1fAlrLs/8uYUvd+DwRuallhjpFf4AGAFnu0Zs5P0vKrPJ3yA2jmhtsKRr2xvMj0 3apZHOMUQ6Wi6x1EjT9pl3WLWdsPYA9re7tMiwD7RFXpTzuaVOVLU+akJODaFjUt4gY+ Dnhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692794555; x=1693399355; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+g4gZH625S0gXedtPm/ysP71OZwLP8+XRKomfcjxyB0=; b=Swxl0Utjnlk1iOLSyNbDODOYmTXspsGZLSrpK9tmoGCRiggLDxf54lZRisImaDXynx zZIE/DAMHZXu9rACJz58w25B97Or/BKS0mqp0EqLNNjYjnIOzNGP0QvcubgiOnzDxwYX tXSODm7JuD4fEeI31+mFKfyLW5aAWQ6NnYM7jX32xuF3l+msl5aDk7ioKYQi42CM3LLC T4RnLIU8D5OKlMVXWqZh/TAiKYQsfsG+XMKMCx9yma2ljVip6Juh7cYY1LGFQFXqa/hm iRdzqVxYuHXP7Toyz4dCyL8KUxx3FXEyvnhXBHH9v6GctaO/h58wbC3K1gsE+Txzg1Ol IWgA== X-Gm-Message-State: AOJu0Yx7KSUqz/UwSXUOGWRMKW9yWzYmIpE3V6Rib7AwTG2jwyLqPEB9 N+92HtndmeDexOJrCxHJOMlwLtgLCRvlbjx74QVjsuSDkPA= X-Google-Smtp-Source: AGHT+IFbnAumFh0FlA8MHeilbJtLE4xGIxTug0kHnoCw7T796EiCVtgBOKnAnrNLwQfKatBVcNcVbfz0Iv1Gut8txqw= X-Received: by 2002:a17:90a:ff17:b0:26d:1f3d:6e86 with SMTP id ce23-20020a17090aff1700b0026d1f3d6e86mr9586662pjb.47.1692794554649; Wed, 23 Aug 2023 05:42:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: linuxtechguy@gmail.com From: Jim Date: Wed, 23 Aug 2023 07:42:18 -0500 Message-ID: Subject: Re: prompt colors bug? also possible feature add To: Bart Schaefer Cc: devs Content-Type: multipart/alternative; boundary="0000000000001b998a06039672d7" X-Seq: 52083 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --0000000000001b998a06039672d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 22, 2023 at 11:21=E2=80=AFPM Bart Schaefer wrote: > On Tue, Aug 22, 2023 at 5:37=E2=80=AFPM Jim wr= ote: > > > > 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 [ [ [ []]]] 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. 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. --0000000000001b998a06039672d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Aug 22, 2023 at 11:21=E2=80= =AFPM Bart Schaefer <schaef= er@brasslantern.com> wrote:
On Tue, Aug 22, 2023 at 5:37=E2=80=AFPM 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/P= rompts" and especially *fade and fire there is no
change in = color intensity or the use of "gray". It all has to do with the b= ackground
color and the use of 4 block characters.=C2=A0 "Fu= ll Block" is a "solid" color block.=C2=A0 The
othe= r 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
th= e background, this gives the illusion of four shades of a color.=C2=A0 Gray= isn't even
used AFAIKT. This is easier to see with some colo= rs over others. When grey is
specified, the color defaults to the= default color of the virtual terminal you are using.

<= div>I also thought=C2=A0 that prompts just supported the first 16 colors, &= lt;0-7> normal
intensity, and <8-15> high intensity/brig= ht.=C2=A0 But testing showed that colors are
whatever the virtual= terminal/TERM can support. <16-231> are all the 6x6x6
colo= rs and <232-255> are the 24 shades of gray/grey. 'adam2' and = 'oliver'
support bold by using the word bold in the o= utput string. At least 'adam2' and
'bigfade' allo= w a limited number of color changes from the command line.
One ot= her thing, at least 'adam2' is set up to support '8bit' gra= phic 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:

=C2=A0=C2=A0=C2=A0=C2=A0 prompt bigfade [<fade-bar> [<userhost&g= t; [<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 combina= tions of colors you want.

<black red green yell= ow blue magenta cyan white gray grey> or <0 .. 255 >
Hope this can be helpful to someone. I've learned a lot doi= ng this.

Regards,

Jim=

P.S. Bart, thanks for your input.

<= /div>
=C2=A0
--0000000000001b998a06039672d7--