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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25830 invoked from network); 7 Feb 2023 02:55:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Feb 2023 02:55:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675738501; b=eH0+BN7Wh1ExOFVAxnLfsoRCCIZCuVrV3lZbnA143jCxSuLAaQyzY2oOI0BHgRAjAzxE952cKw I7CnhAE5WB95ucehrVM0lH+vrm2debeycz7oHIva0AoUj0M4fU6hBtI86pRRg8rm7JCpiCv+Wt aZuNKoHwUZ/AtAeSl5uNJIpPk5s6iLZTD/ddEcrMpibHO1X82zTRjlsHrYU/PoAfmfKt43uHSx C8TfZn6ihAo6w4Lkdw7BL1LitHm7TQA7j8wQlG3RN6kXfBH79SjVmGFqnUXW3Cw06cNXZLwgiT 9+FXyZtIn+ujVp8bDu47tG0GoYLmUdRv+o6EfYoQ9dMjtg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pj1-f53.google.com) smtp.remote-ip=209.85.216.53; dkim=pass header.d=gmail.com header.s=20210112 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=1675738501; bh=yV2SOzfGCnPrpFvZ3Pi/J/aR8EHNPZ9ru9M0PzI6oiI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:Reply-To: MIME-Version:DKIM-Signature:DKIM-Signature; b=VHb8LDhsQnAR2GLsiCVkEynuWiLBE8uCJN/NA5BWthijm69wbAwLS3yyL45hd13Ak4qWpx4aP/ 8oy62wSgxAM6kelBFzLnpN5EFWu7dp5QVlQ6LupbDQ/5/5sgZFD6ttn+AH2/P7db3LTcg+6DhU mRt0o/TA92ZmuiF585C785eVw6eHkpyfguqlf5Z4pwj/kW0LsO53StfjpegeDrtOK6cdv7w8/G zXIUsJjAQKQo8o6MJkbskFjjGWK+NVyXlCHNoCni0+gq3sOhnpstaDNLwTCiVGIA3pMErgiLbF ZEqdYPUxRA0TJUsDo0QFIvga887Fgi0CfPztaqnu/PR55w==; 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:To:Subject:Message-ID: Date:From:Reply-To:MIME-Version:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=THm9wzAYSOFd5a+x/4SfPZ1NoFBR/+OnyOk7M6gc0VQ=; b=sRjCSl5LJ5QbnzwTdxXr6coTdI bZSDhLbWNCJjcwBDTk5wklQPW/IMNDbzumVcTAg8eWuzCujFfoOTORQmXMlWwPV0Xk6C8ixllQGYM JaaYR61ZDMZlhAHlhpCqMuLa0SyKEJJfDEy0zHVk0t/kPgze6pLujdMZ4lS4W8xM+esSZM17RckcV X1AypfzZ6+H7QE1+ItMyLzyH48RdxkEVzTj4bc2VeHqmepaTH/uzeeNZ8WzYM/7I2u2Gc9XQefw4e kfxOaVOeeVV3zFfNKPgu2zF2aaF+hUjSAypBIPq9Ggsbcr5yC5ZiMLd2hAJP0v7bRq+zXB1JQPrAH 0diAk+Fw==; Received: by zero.zsh.org with local id 1pPE8K-0002ya-Jt; Tue, 07 Feb 2023 02:55:00 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pj1-f53.google.com) smtp.remote-ip=209.85.216.53; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pj1-f53.google.com ([209.85.216.53]:46925) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pPE7X-0002Gn-CC; Tue, 07 Feb 2023 02:54:12 +0000 Received: by mail-pj1-f53.google.com with SMTP id rm7-20020a17090b3ec700b0022c05558d22so13388574pjb.5 for ; Mon, 06 Feb 2023 18:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=THm9wzAYSOFd5a+x/4SfPZ1NoFBR/+OnyOk7M6gc0VQ=; b=IUcPqmNACWvkp0bv1KkcKFX48Xx3SSK13LccmEnp/ayjUgdiKJQtNq0S6QkpK4cqNV FJfrztW13EJrLR45TMHfGgoDV1U6vD0Xqrf5qZ2PBLNv2ZzZySjdiZ0oe9iLdHwBRLLo 7bqDHs6qcY7KnyaOnx2DUxFPhxL16fdNCy7/hiYcEGV8rDBMgoRXS0Px4CKt+sGl5SsJ jEujPPhGbsh4nyHqqjWAgv1P/9DpgHq7sMtB/ipBHPfNCuYm5xrb4gs4VlFEiqWymBM4 fZ6TcT4AW/d3lLBZRo+FlJgl6uyMXK7FIHCl3VYdqRFxH9F+wnmUzsQQKDFCatqnfNF7 Uljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=THm9wzAYSOFd5a+x/4SfPZ1NoFBR/+OnyOk7M6gc0VQ=; b=llm/OxYgEm85BZIi2O2OWDsAWxHLT3g4n71P+uD9+b/N7ukhFDGrqL6pMWt2Dtq/94 F6pfTpeq/pZ5is2GT01FPykJWTte3+BytbKhYag5Do8xpJQ9Nv/VL0ji9KymRbn9Q8nD SztFu9e5vEfwfwpO2vCpZW8IFRFbl5bBskTwwq7K3U8B4FPGBObFQO4xmkMJ40F+cbKV gCPJGP8Q6puZuYfM8vMT9Qge33lJW+vZzOsGr4Fo08ILLnfPyk3k5Uqoavw1Qq+TBfu+ FV3sd0QreKM3ps49r6ebJHtjLiL9O7BTseJwapR3VlnmPPd45IJnnBuX32X7/TxCVum5 92vg== X-Gm-Message-State: AO0yUKVItCaVHuNBSJOUcBa02axx3bbjYTDv3iiZ6YeTSF8XbyJngmUh d6ifPD/XMOrKtUDVyg7ENQHPiT0BHBEHcvjM7Z4ku/FA4Tk= X-Google-Smtp-Source: AK7set+C1tQBtOgwHTp6NG6ZeHMPiEUjiOScz/jBz6ixpfqh2WoRxhzU9yixExlNVZhjd/OnPp1VKTueDb5fjTiK3wI= X-Received: by 2002:a17:90a:990f:b0:230:b2ab:1207 with SMTP id b15-20020a17090a990f00b00230b2ab1207mr1311875pjp.86.1675738449571; Mon, 06 Feb 2023 18:54:09 -0800 (PST) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com From: Jim Date: Mon, 6 Feb 2023 20:53:56 -0600 Message-ID: Subject: zsh/nearcolor module usage To: zsh Content-Type: multipart/alternative; boundary="00000000000005f2e305f4134351" X-Seq: 28906 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --00000000000005f2e305f4134351 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, While searching zshall man page for 'color' I came across the nearcolor module. This is something I hadn't used before and thought it could be useful. Unless I missed something, which I may have, I didn't see anything about how to use it. The module only talks about loading it. After some google searches I did find an example of how to use it involving prompt expansion in an answer by St=C3=A9phane Chazelas ... thanks St=C3=A9phane. URL: https://unix.stackexchange.com/questions/665370/confused-on-colors-xterm-vs= -zsh-how-to-set-xterm-without-breaking-zsh-colors % print -P '%F{#ABCB8D}text%f' Question: Does anyone know any other ways to use nearcolor? I tried using the parameter expansion flag (%) but nothing I tried worked. As I said, unless I missed something, it would also seem useful to add a usage example to the man page along with how to load the module. BTW, not all virtual terminals seem to use the parameter COLORTERM. xterm is one that, AFAICT, doesn't. Yet the nearcolor module appears to wor= k as long as TERM is set correctly. In my case TERM set to either xterm-256color or tmux-256color works. If using the example in the man page, nearcolor would never have loaded for xterm. Regards, Jim Murphy --00000000000005f2e305f4134351 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

While searching zshall m= an page for 'color' I came across the nearcolor module.
T= his is something I hadn't used before and thought it could be useful.
Unless I missed something, which I may have, I didn't see = anything about how to
use it. The module only talks about loading= it. After some google searches I did
find an example of how to u= se it involving prompt expansion in an answer by
St=C3=A9phane Ch= azelas ... thanks St=C3=A9phane.


% print -P '= %F{#ABCB8D}text%f'

Question:=C2=A0 Does anyone= know any other ways to use nearcolor?=C2=A0 I tried using the
pa= rameter expansion flag (%) but nothing I tried worked.

=
As I said, unless I missed something, it would also seem useful to add= a usage
example to the man page along with how to load the modul= e.

BTW, not all virtual terminals seem to use the = parameter COLORTERM.
xterm is one that, AFAICT, doesn't. Yet = the nearcolor module appears to work
as long as TERM is set corre= ctly.=C2=A0 In my case TERM set to either xterm-256color
or tmux-= 256color works. If using the example in the man page, nearcolor would
=
never have loaded for xterm.

Regards,

Jim Murphy
--00000000000005f2e305f4134351--