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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15226 invoked from network); 3 Nov 2020 18:54:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Nov 2020 18:54:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1604429686; b=qV0cNW7VG9LeH4ocwPyMW65fLydPS6mkJH44Sp6KLHyfplB+DDanOQG7DrTRTOQlXCRGGX0eQy hXjR0uNpWxFIkQjiGAeeBOJ57uBWYC/n9FdTkJDJETFyJultHupY2qeNgHwsyzXzx51ytKIoVe CRpp+cgAraWp6GIzUJLjDOTAv8rwqvRMliKmRPj5mCktpPiqL4GlS21pYLKK3sQRZee0c+oiSS 44brgHwTd+tl6XXp9HORnkjsXsxAFuuhMt8f28IlIpsvnvMTpcP3GoBLx5siE8ed64puXIyK89 20KTVOo7JRuBc6c/BdqY7UCjER8lSpBylnxjnEcGZjVYHQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1604429686; bh=nZPyX+9bLhmazBf5VbLMSop6hJHR0cx4QeGOBO3B5OU=; 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=RRC4/uq4SEPOyhNwNmyhr+bT1hRHKV0QnV49uVwUtuXkdJ/xDp0R1IMGZ9L/EBNoVSsgjSfgsa X/7ZL/ArT7SOOKl0CkC6ZELZt4dTQtea41CasInN8HvXnhivsqdYTgqqaoQt/wxIlewZVZ6VL6 yj57gow1Y4kl98s946D4yLGQ7rIUNxklrQ5llNOdwwkWuSp6ncBa0MsTrtCmp0yOVkFECf55OB rAX0QESqbvttW55U5DTGPKDjz8WoAxgD6pAfI7dE0udepAQVlh1Wk5UNv6tGBdT38spJiSnJD6 U6ZtKkh49KA5Y3EA71JmHNcjzx5ZdwbYlNt1qEucRHOmfw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=tGLPqlva4ES6jijjVuW/VvB3jwhCqR/NKprYUMXB6wA=; b=tZVSnfi/jbtMzpPwpNRllw+yLw JPchdaZ0HTt0aeLRd6MqitS5l0zhzCS1WllhIIwSmaTLjVuWOh9C6NFcyxkR7Y0J2gvOXtXcfMUAJ 46srvpJf5ktJytkiB35hl2lBJyqUkfSHjrrcCnzVTzZDYvNe5Pf7XfGU1Rxk+/bPXA7ZOWh/kQmmW k+lSa8v9Npek+vRiom4tjR3IKUFGAROlTJ5HkeUHMzpe6r44ehJ/pjnT2iGS7PvDebkgEpdNBSI9m xB0y0dm7Uy+Asqsj/j3amq6fE6WxfZ4IGHrnnqMJ+7aKfwPbxUD9UlGAqjRzueXEIVBSdrb0HVU40 4guopdpA==; Received: from authenticated user by zero.zsh.org with local id 1ka1S8-0006fo-Ox; Tue, 03 Nov 2020 18:54:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f50.google.com ([209.85.167.50]:46407) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ka1Ro-0006X8-BB; Tue, 03 Nov 2020 18:54:25 +0000 Received: by mail-lf1-f50.google.com with SMTP id v6so23578153lfa.13 for ; Tue, 03 Nov 2020 10:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tGLPqlva4ES6jijjVuW/VvB3jwhCqR/NKprYUMXB6wA=; b=UidNvekw1D8VmrZwxFTrPkyMDh6XE0vGDOs4OY1LBHWXFg7SRQxJTzD6GZ6oyf3+da 0G1VFLCTp1BW4nEV0Cs/tw+IMi6KFoPwzbp7LSHDwyQhZrEJnUJMK4MHL/qqvwIC0hTG YLeosDg+lP93Y+J02O/IeS3kqpVPNNhTyaO/rlYOIMWC4bw6yg0o3ff7FZDkNLqLtaH7 9rCdwyNbn3ckMe4Bk+CMH4VhnmzHKUwuxlTVg66g1nHAESvR8zYeKQJqcqp80RMm7rB4 hi/Epia7uqgfM4a1cYhTHDktH9rDXhI/fL6lK+LQ7X914eFK7QLYUdIYbSYtHx+NxlJS XLdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tGLPqlva4ES6jijjVuW/VvB3jwhCqR/NKprYUMXB6wA=; b=ETp4GYE6Bbq0aNKjVvo+bhrQ4XQTgFha/bHnlDq6ntRgsdKwcpOgqAxT+Ak03cCui2 XqLpWFUyBYU6Ad4ogYo35kWIWSKbG+xY8B7HhpiG1p9QTDLY1PLhYGYMtucbS37V72Zx N7H1h88lUgqGN1ljjb3d/ScB6byJmsObD2BuqVfeYtjbH2X2ufSNMjbpMhpfa3Zgfi6s 5bWAseP3FCy9sGtl+ZAJM0b8DdMXqmGfjzUOuo6H+E45G6U0y6HZ4BPEBYoIM4l56+FM 6twew9aXahAru/MF6Uon5v86DAFmTJ3Rrkc0ZCmEkyxU5Mog6GHgKef07NFywNkqcZn3 ULpg== X-Gm-Message-State: AOAM533df2DNcoGqXjVxRBao/JIb7RZprskCcsYNqUM9xfE4HLO+CDJO da2Wq1TTslhlnJ9NBXAj+ZE0btV0NWjbI+rm8dQ= X-Google-Smtp-Source: ABdhPJzJCJONxbAVgxEJCBG74xKgUhmHLYU+t78gubfVY2lmYBtuBwww/NdpjdPliUM7nQih9noiytT//NkHjthdl0Y= X-Received: by 2002:a19:c50e:: with SMTP id w14mr8921598lfe.589.1604429663357; Tue, 03 Nov 2020 10:54:23 -0800 (PST) MIME-Version: 1.0 References: <20201014204621.4cf5b2b0@tarpaulin.shahaf.local2> In-Reply-To: From: Marlon Richert Date: Tue, 3 Nov 2020 20:54:12 +0200 Message-ID: Subject: Re: Functions/Misc/colors vs. region_highlight To: Bart Schaefer Cc: Roman Perepelitsa , Daniel Shahaf , Zsh hackers list Content-Type: multipart/alternative; boundary="00000000000026cf8105b3386473" X-Seq: 47516 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: Archived-At: --00000000000026cf8105b3386473 Content-Type: text/plain; charset="UTF-8" On Sat, 24 Oct 2020 at 03:50, Bart Schaefer wrote: > You're correct that "standout" doesn't match the terminology in > ECMA-48. The use of "standout" was chosen to follow the terminology > in prompt strings, I believe. > > This matched the behavior of most terminals at the time (notice > ${(k)color[(r)standout]} is actually from Sven all the way back in > 2001). Also, there's no way to directly reference an escape sequence > for any of the "Attribute Codes" (they aren't in the $fg / $bg > hashes), so those values are mostly there for commentary value. > > I would have no objection to adding "italic"/"no-italic" to the color > hash. It also appears standout would more accurately be tied to > reverse-video now, but because the keys of the hash are the numeric > codes we can only have one or the other. > Would it be possible to drop `standout` (as it's rather ambiguous) and instead add both `italic` and `reverse`? They both have `terminfo` entries. It would be great if Zsh could eventually support the same highlighting keywords as [Git does]( https://www.git-scm.com/docs/git-config#Documentation/git-config.txt-color), but I guess that's a long way off. --00000000000026cf8105b3386473 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, 24 Oct 2020 at 03:50, Bart Schaefer <schaefer@brasslantern.com> w= rote:
You're correct that "standout" doesn't m= atch the terminology in
ECMA-48.=C2=A0 The use of "standout" was chosen to follow the ter= minology
in prompt strings, I believe.

This matched the behavior of most terminals at the time (notice
${(k)color[(r)standout]} is actually from Sven all the way back in
2001).=C2=A0 Also, there's no way to directly reference an escape seque= nce
for any of the "Attribute Codes" (they aren't in the $fg / $b= g
hashes), so those values are mostly there for commentary value.

I would have no objection to adding "italic"/"no-italic"= ; to the color
hash.=C2=A0 It also appears standout would more accurately be tied to
reverse-video now, but because the keys of the hash are the numeric
codes we can only have one or the other.

Would it be possible to drop `standout` (as it's rather ambiguous) an= d instead add both `italic` and `reverse`? They both have=C2=A0`terminfo` e= ntries.

It would be great if Zsh could eventually = support the same highlighting keywords as [Git does](https://ww= w.git-scm.com/docs/git-config#Documentation/git-config.txt-color), but = I guess that's a long way off.

--00000000000026cf8105b3386473--