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=-3.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31728 invoked from network); 12 May 2022 21:20:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 May 2022 21:20:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1652390429; b=Y1bvgukLmPD022bdkWidQyKSOIMaoctlON+hQ2UrnvrX1983Ee4LJQh3J8hFINFE1GSqx4gfTL Z0LLSA3czzo12h00qUzTBG6Ar6NPKqj4gEzYoYvLTiShMmNxluRRtySIAo/XUqZeQJi/zS+B/z N2GquF9LH2Xeu4uSnu+G++rYVIAA3P7psxRFAa9hue8qOGnGKEo84d7sHgBYY5D2Pw7ssdowTD njEinkQ5FS3SBeg4wm+ayocDykGJ00+tKmOh7iaPEdGcQGg+zj/FP2Vsc7CDsyWnact2hzi9QR cYXp8/3sAjedZ+AuLuJrx7olljns3/0EDvRC1fU1c7XpFw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (stadtkapelle-zell.de) smtp.remote-ip=85.214.158.43; dkim=pass header.d=pygos.space header.s=default header.a=rsa-sha256; dmarc=pass header.from=pygos.space; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1652390429; bh=bByVb4z+WCIEQULYDcrTSACJSEQ7VdAt/L0tJnkRqNA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From:Cc: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=JxyDvbVH7srshLuu1HaitDsG/j1BbO01PgXOfc5+SkltWwwpwYMsPQlUCWCpAatdDoObCXdbge jMLw/gdx+rMAgIIOId1Jfn11XapLtBisNCYivN8/REez28NTI5zbMffLFZDEcXXbqXu2nWnJi7 oHrIJWjeHN5sTRbbzRKge4MpRlbZIPE7rTmasGjaym9jZ9/wpf6Ar1KdYMCkRqEE2qmubEjna1 gIyRHcwm+dcCUbxEBsmuEL7VKPniNyuAsFge6MDeQ/C/fqHhGfDaYZ5XMdQqrWDNfxDsfaRNV6 2pf/WwZE2Wx9dMModT+MTLdPZRavPga80dQhOrUWLSvVLA==; 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-Transfer-Encoding: Content-Type:In-Reply-To:From:Cc:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=gb8aH1wd/1dh9vPYJyyOGcnX8wkQomm61B0O+uiAnlU=; b=I3nW7KixTJ4lC1MLbzRtJs46HI 5lbVH0b6/Q7RiNxE9885z/cKad52YrSewxAkQ3OWUEnkvnUE42WIiQ52hC5er0YURPh4ocEZVyXBE vQ5ln/vA1a5MpSfINZ/qDCOronDOWhrX2uZ8pgdl6Txh5RGfFtvbw4jvzGMYhfEj4vCgNhV7N2Xtw Sy1WeEZOtq8J/rEm/4xAiwP8h0qT5SXsS+rfl2m26CEUgrN8TXDCO9wzI9UcMjOZ6z3XG77yPOx6p SxuiwUaIuKawtNXGsO8fOx9lQuBqRh6btXKbONixY/Z1vizS1WRUe89+losBHESHMxaSXORwhRVxy 2QLL4/Hg==; Received: from authenticated user by zero.zsh.org with local id 1npGEV-000NFG-C4; Thu, 12 May 2022 21:20:27 +0000 Authentication-Results: zsh.org; iprev=pass (stadtkapelle-zell.de) smtp.remote-ip=85.214.158.43; dkim=pass header.d=pygos.space header.s=default header.a=rsa-sha256; dmarc=pass header.from=pygos.space; arc=none Received: from stadtkapelle-zell.de ([85.214.158.43]:43764) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1npGDx-000Mwg-K1; Thu, 12 May 2022 21:19:54 +0000 Received: from pygos.space (p4fd057fd.dip0.t-ipconnect.de [79.208.87.253]) by stadtkapelle-zell.de (Postfix) with ESMTPSA id CD55780391; Thu, 12 May 2022 23:19:52 +0200 (CEST) Received: from [192.168.178.78] (p50902b38.dip0.t-ipconnect.de [80.144.43.56]) by pygos.space (Postfix) with ESMTPSA id 0C933AC7B0; Thu, 12 May 2022 23:19:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pygos.space; s=default; t=1652390392; bh=bByVb4z+WCIEQULYDcrTSACJSEQ7VdAt/L0tJnkRqNA=; h=Date:Subject:To:References:Cc:From:In-Reply-To; b=h+JFj9QCIVoRo98khaNjr+PsbYsFrylVZZ56BTCySdD20EgozCH8Ii/2CF1lXTCYv a1twj0xgBTGeS7rasA/lOnEnif9hEmPTESBdlhzTjz1kjY7kaq4wjVFQTg/UIJX+FK bikWXpOR1NmWDp1Ovzy6OaOZE4H+vCXqOOPm1k0M= Message-ID: <1c851030-c051-e5f7-8d82-a6a326eacff1@pygos.space> Date: Thu, 12 May 2022 23:19:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] Support more colors Content-Language: en-US To: schaefer@brasslantern.com References: <5af198ae-17e7-1136-8c6e-8e3008c43c00@pygos.space> Cc: zsh-workers@zsh.org From: Jan Breig In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 50212 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: > Thanks for the suggestion, but your email client or server has > mangled the diff. Can you attach it as a .txt file? Yes, sorry that was due to CRLF/LF conversion. This one should work: diff --git a/Functions/Misc/colors b/Functions/Misc/colors index 027ca9a..49d44f9 100644 --- a/Functions/Misc/colors +++ b/Functions/Misc/colors @@ -62,6 +62,16 @@ color=( # 63 double-overline-or-left # 64 stress # 65 no-ideogram-marking + +# Strong color codes + 90 strong-gray 100 bg-strong-gray + 91 strong-red 101 bg-strong-red + 92 strong-green 102 bg-strong-green + 93 strong-yellow 103 bg-strong-yellow + 94 strong-blue 104 bg-strong-blue + 95 strong-magenta 105 bg-strong-magenta + 96 strong-cyan 106 bg-strong-cyan + 97 strong-white 107 bg-strong-white ) # A word about black and white: The "normal" shade of white is really @@ -79,6 +89,7 @@ for k in ${(k)color}; do color[${color[$k]}]=$k; done # Add "fg-" keys for all the text colors, for clarity. for k in ${color[(I)3?]}; do color[fg-${color[$k]}]=$k; done +for k in ${color[(I)9?]}; do color[fg-${color[$k]}]=$k; done # This is inaccurate, but the prompt theme system needs it.