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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16891 invoked from network); 24 Oct 2020 00:50:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Oct 2020 00:50:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603500641; b=vdNs0v+0skOE2pYuLNcDrALJ88eVFMm2+oA+d7mFWN45VB9lKDRfDUSJkIseGmsRaD6vMHZYOI Vnub2Gx1BinPZiFq6xkdBzpp2a8vHLh8ieEKfrkQaFIMbAZ+p503Ya8oqAWMJlkTYI4Dr9/8Nm sXBl2MMmyTAIhkaLvqQ0HZQLp/M7s5FkgarWHEXqudir7tCDLpxnsDk0LglyhVbG6g98d70+F3 ZOEF0eLnaZNxUUa5bsJG91b4Ot2j/kE956MdjewNwGkmNLeCBkOPQeAsWKXdOWRUkEa3dEGGAv RAADOMpXpf0sz9qBkeb8FrHFTiUGy61gG0uDC1LGzZfzhg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1603500641; bh=xrIPjTZUmHxeMzSS0Ach205GAfzzGFL5PX4bIQJOFnA=; 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=SSNRZ88LOA4yvf/bf2DnEXX2Iem07Abp7Bdm9mHlEIiWMlIhnBUxdUvrugD7Qqo6hKatts5/JZ hxBRY/iMSePm/SmOvye/MBRne0VRxv2rne8nRq+riaZ0FeiBKgz3F+fcTCurPmKMOpTcJAkWx+ u3kAeteu+NYxkAuqA2/igm95H5bAYUF6nSdEuNuglqN3kaZDQclhSsiE6DG6OZi4KJt2D97KBq I+qtkj2KGPahkboTgQjWgWDr9lvTCj31J6rFISOhzeyhWn5SgqubbYcumdTmkJQzB2bF4EhqMH aaOETuPdXeCxmlO+eMKpp7RKls0jwAvZoqZlh5LLJ5g/vQ==; 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=FtEGHaJ2ufDehEDtvx9m2+rF4dO6AaazZVxBRcJucxU=; b=PIfCThLE+jzHLaYT2+sgwcZfQg BoS/CXvWzV0JGq6pQaQbo8Pb3nlqt4EK9uByj2MYr8Iui9U45+n9xORKDR47kENPfdeGyd37Ii/a+ R0y1w+iDhu/+4587qTyDPgvxyuIk87uVTrW8eT0PCblEqpTSSZclTnu+L9ofFv2/2d6bj2cV+8Txc nJWEJAal8h295rtEHA4H9+9EmOqDpqieNx9ZuQiO510/eyw9eB/AwNP8gkANYPiEkhqw3Y77x6ia1 st2egNFID9nuOxd5Jp1E9hi3AzQwRjake1y9fjvTRaADazINNoJrNNKl9sFPInDJQTKMq4N1OSQmr gZ8s07zA==; Received: from authenticated user by zero.zsh.org with local id 1kW7lT-000KQK-VE; Sat, 24 Oct 2020 00:50:36 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f49.google.com ([209.85.210.49]:35936) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kW7lE-000KGe-KI; Sat, 24 Oct 2020 00:50:22 +0000 Received: by mail-ot1-f49.google.com with SMTP id 32so3057097otm.3 for ; Fri, 23 Oct 2020 17:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FtEGHaJ2ufDehEDtvx9m2+rF4dO6AaazZVxBRcJucxU=; b=MHmQf75NNo01VNAB6NTlZYEw25Umk8o32mNPnBMTjKs+hxkVFp/2Ovy6tdEZ1LHzIh I8UsqUBHf1xlubq9K9OfZ2ywJeFYQR1DuGWF+vuPiQfMbhA6SpMc+lM5thO3aj7Iqa+0 2uM4zqYjwFbliP67L+9z7tmQFqi6wgsJd2aAyD15xeaHKEG0R4u6rW/+f29D8h15f/zl +qFjtSFXTTMvvYR4RcwWmvXkX1W0oj+xkuu2aspVBvy6qdk4B0kOes0vmyMbpTKchjtC WallMWvdBtRFzbopoxZBMHYD4YWLwPczwb4F1UI3xdyXTtlns2qZn6iT0DeF7ho1WOpo qGWA== 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=FtEGHaJ2ufDehEDtvx9m2+rF4dO6AaazZVxBRcJucxU=; b=Wf6uDQIPLhRln/0NAcDgy8362yZIHPm5uf+d//d0Iv0jftcxo+UMRqMuhLY8Ed0Q2u ZEYB+xdeE822x9koJocJI8qhg954mVo5JGAFalVzsyjJZSvkuW6nNy6TxB5SsEwMErDE /fZVI3wHUQtjvKCgDvUfUtl5c0B/GR42u0Wfie5C7hQCrw6pOJMSDfTBSwwQBCarjIO9 ki7XetzJWNJjoWYgyI0FFQqyGa2GoMtxEtIYL/NCz1pJbrbvuuwz9QLSNXLPt3YVN+5J CmJjs4r/JBwLEb9I01vDgK6vveflMSXD8SEID/5qMzwCv+8CMUNMAsQUNWehVd6RtUog UD7w== X-Gm-Message-State: AOAM533xrWVXeHsId79HgF99fpglk0HviEXcMdNhlB93617U/vMHG5I/ frQDcF72jUETGIEk4u8gDn9vRbjehA0LvJ1z3cynhA== X-Google-Smtp-Source: ABdhPJxlVAzTiLs8f1ozLhfI9O8SxuQwEJ0y1sGSNRDac2t8nyxaHQK1wKKvVgU8j4Z2DNgNoQLQFeokxR2wnYmZ+hI= X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr4123276otc.229.1603500618974; Fri, 23 Oct 2020 17:50:18 -0700 (PDT) MIME-Version: 1.0 References: <20201014204621.4cf5b2b0@tarpaulin.shahaf.local2> In-Reply-To: From: Bart Schaefer Date: Fri, 23 Oct 2020 17:50:08 -0700 Message-ID: Subject: Functions/Misc/colors vs. region_highlight To: Roman Perepelitsa Cc: Marlon Richert , Daniel Shahaf , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47489 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: On Fri, Oct 23, 2020 at 4:38 AM Roman Perepelitsa wrote: > > The fact that region_highlight and zle_highlight support "standout" is > not a problem but a feature. Standout is a part of the curses standard > and zsh interprets it within region_highlight and zle_highlight in a > manner consistent with the standard. ("standout" within "colors" is a > different matter. That one is incorrect in my opinion.) 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. diff --git a/Functions/Misc/colors b/Functions/Misc/colors index 027ca9a14..b221e6688 100644 --- a/Functions/Misc/colors +++ b/Functions/Misc/colors @@ -14,11 +14,12 @@ color=( 00 none # 20 gothic 01 bold # 21 double-underline 02 faint 22 normal - 03 standout 23 no-standout + 03 italic 23 no-italic # no-gothic 04 underline 24 no-underline 05 blink 25 no-blink # 06 fast-blink # 26 proportional 07 reverse 27 no-reverse +# 07 standout 27 no-standout 08 conceal 28 no-conceal # 09 strikethrough # 29 no-strikethrough