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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28908 invoked from network); 12 Feb 2023 20:52:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2023 20:52:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676235132; b=crpsj1SgmD2bM4v3z+uv3q2rXqxoNQlpye2iU5n0OyW4TpPHglOL6QJibHUR+y7Lxn/hwinTiF 6q7uj280AMQt1eoMfqr3xQuH4Di0Osj4QGMgNCgBJsVTfHrPZyuydnKOzWlps6NKvzFgcMHWmc P5rzFLgez5Vulct1uTFwd48iK00mUINjdF199IR5lKU2AcztT93D6c9UJcK/BgLVK11DQDECb8 OBGbC7C/mXR/IX0ApffwYCFmA89u5HdgQQKRsT7D5kCWuF7bgPZr25Gk19e5usDNcKvRJ+jEHN qh4UzC4TokZy3NK5UblEve+iYndPRND9Xh1LQUEDXDqZzw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f45.google.com) smtp.remote-ip=209.85.218.45; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1676235132; bh=RG8QsitHQpM1Ghu3HiTvDpCmmuBMqg8MQGajvGn+sm4=; 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:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=d0kFdlFSOckzRm/P13ausH7DfaucC4EeClHr+mhPjDFjq3noFkCs/8gPxhqJe1N9c7fnVdFaeD PGEykDMX892mM1OEl5UsGvSPxo6Re2i8eJdolZiisJkVhyyXe54ODOoaIqYP0SkI3L5o1xLITD OYHpWc1gysMMBYnfjPzejTWGz5Qh68fPRxAIuoHBIhQ2xhKLXC5zmaBrtquFIvknQSM/p5oS6V uHhLGX2YUHXcbgJXn3f3ms7lrDTYkWJy6B0XHud3o6zx/SwPSG227qxnFxl7QckX2bItDLDnT1 kb1LtQlCf0maE9md5+1xGF2/SC7U2Hbvavyz5kKa/Yqkrw==; 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:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OCEk6g521kehzJ2OrS1jISYvkq2epTeB8ZAwC0daVig=; b=T3lzisYQRD8OkrU2DBF/eXBRe2 Oh2YAXigEXYL1u9ZOl5Yemexa1/PU+mAbhL/+4gaqzoT7o/zGSw7YOoWCJY1uU37KKQWThl4IbZRA N64XtABB/CGHzoYfA9OWELhX4ZBSm3GGEblOlU5KW5yk4rnzsowjhedK4v85oWXLUcIrTj9vUet8A zZ9N7H4tp0iBeXKJnaOKN8rsZEi+EGbZTbfdsmX65ctVfv+NbcPbm1a4EoTb7KOEhvZtaztT6ZgLc 0K8sjTFEl8jhoKAV12NjTQLH5/zfiG/miTqB+sNcdprOOcTnkKnQZbOYG03gm8tuYqIKYB3f8zbiu gtnmFPDA==; Received: by zero.zsh.org with local id 1pRJKU-00003R-NK; Sun, 12 Feb 2023 20:52:10 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f45.google.com) smtp.remote-ip=209.85.218.45; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f45.google.com ([209.85.218.45]:40484) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pRJKA-000Piw-2G; Sun, 12 Feb 2023 20:51:51 +0000 Received: by mail-ej1-f45.google.com with SMTP id rp23so27361470ejb.7 for ; Sun, 12 Feb 2023 12:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OCEk6g521kehzJ2OrS1jISYvkq2epTeB8ZAwC0daVig=; b=lqrrdXa1+0dTVPWkqdX9zwTWoPBNqyjn7jvL/GVB1+W9liX2dhyrfHz5Jnthfk2P8h kmpCzeETjS6vgXVutLAdiMBpApJWygpBTJfVTTyakzWVTpoEa03OUfiALhVZbtss/XKZ Mk68TkF6pUi37+lT/5jAraMtV01gFrMsk3M0xCy1GhOmfuSn3R/uio1O0k9GFREcSNez Q82yho7/jdOapsuRYWwJVav34jxFKwKTTJ5nHvAmFWD2bOkcuwqfsv0IocvbHW6hjFIV hjY3mOy0fX2DKRIqgY+xsYC1TVpH2ZyiEz6DGukxM3SMH23j1x57Rtlo0wpZOJz8sGp0 T6Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OCEk6g521kehzJ2OrS1jISYvkq2epTeB8ZAwC0daVig=; b=7xQ5Wyf9wCUyL8Q8vuJO8i5hZRV+cCPihpV9aT/qTohLGsvLZ+ux8cWUrP7c/fug4G Zn9VEuGYR7UYlYgoB9o1Fezd1MCWtLhBcmflGWQVdV1i4LN8vsZQWIiuiqK5maLzAf89 AIIk0h+DkNGfjPTmjTN0TE+7Mx7OXtgu35wYitrHPcWZubc/vDG8EaIKhkQbTAUefudt Bg5cNuKwuwESbIuQiPGq4Fs1XG2ArNvqIaSTh0/OwyedFDz+4fh772X2bnA1fY2AkVfd WIBjol6j4owqn2YEaKVg6qad/qzAKIXc21DFjtGSmp/2e5wTD8tn8bd1Y5OMrCvRhK/3 +Gdw== X-Gm-Message-State: AO0yUKWuvyZJin2whZDtkzj0vapkSL7+ZD/u4iYIIXO6ROz0C/y6Bo+T mksLjlPHFk0wJSK5fiq5RyzfsLiY2TCLjJzoZIaVDg== X-Google-Smtp-Source: AK7set/0GXdn89Vl6Q3b0gMSEK6BwLAlVny9i78wvoS7loWgpiID7E7QV7g/H/d/2LzseXB0zbG6CoBanZTrSQw0PDM= X-Received: by 2002:a17:906:68d7:b0:8af:373f:4735 with SMTP id y23-20020a17090668d700b008af373f4735mr3543005ejr.6.1676235109579; Sun, 12 Feb 2023 12:51:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 12 Feb 2023 12:51:38 -0800 Message-ID: Subject: Re: colors_plus To: linuxtechguy@gmail.com Cc: devs Content-Type: text/plain; charset="UTF-8" X-Seq: 51418 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: On Sun, Feb 12, 2023 at 9:05 AM Jim wrote: > > Anyway I was hoping that some on this list would run the function and give me > feedback on what you think of the output. It has several defaults so autoloading > the function and then typing the function's name will give you 8 lines of output. > The 8 colors match those used in the colors function. There was a post-5.9 patch to the colors function to extend it to 16 colors (workers/50212). The additional 8 may not work on the console, I haven't checked. You might add the named set you're creating to the hash tables initialized by colors, and bypass re-creating your new names if they're already there. I also suggest anyplace where you're doing something like var=...$(print -r ${(%)x})... it would be preferable to do print -r -v var ...${(%)x}... to avoid the command substitution. This function will be directly affected by Oliver's repairs in 51258, 51272, 51280, 51281, 51289, 51320, 51383 and maybe others, so you might want to grab and build the latest sources from sourceforge git. No other immediate commentary.