From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 25c49878 for ; Wed, 1 Jan 2020 00:08:05 +0000 (UTC) Received: (qmail 15030 invoked by alias); 1 Jan 2020 00:07:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45176 Received: (qmail 25536 invoked by uid 1010); 1 Jan 2020 00:07:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.208.170):SA:0(-1.9/5.0):. Processed in 1.801007 secs); 01 Jan 2020 00:07:54 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.170 as permitted sender) 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=7yR/GvyiJ1rH/8BvX41EKWvKPnt98HPimcZlFDy5wZs=; b=f9jfw9Ox61LoKD9CcxSdAfRMRhHD1Or5mSKF4+9+9bvPNIXNSdJbuY8O/TRSF1Dt0z QpWQWUwsRzDr1BVOe4Xw/lb0EYQ5wdeiJVPmmhzzdh7Fha9snKMLHCj472HXAIry2GUY uugwlc+bGiTEU1KDjuY94Y29cnzbyAZvhrNVjjeRCNIeqM+s7FBQ2pNLzD2yyulY8hLX nH1vpkCD3Ws0MEuJlTbxtlRjTkjUJIj/AxNUQxytqfJUbKOctqttmRryRImj5X65Cv/7 +kjiry68CP6bPu197hJVqcmsH8fd2lDzvl1DrEMxLemo6PgwxtcT5Cblre6lsPtiueez b5qg== X-Gm-Message-State: APjAAAWT94nOd5ZPRCfkg+Aacbg8cSP+4EZ+l+RKjaTvtgH4WtnC5s3r wQ5EYIxP7ovcMniw+3XXzvph2gDfZp75gnsqplvxDw== X-Google-Smtp-Source: APXvYqz+d7vNTMHnExicO8Eitz7rjK7yZx4BikJxLIqN+5qvXlvppIlHfcZa9TEEnD6HJ5UXGr9BmPr0U7Vt3DiOAQ0= X-Received: by 2002:a2e:96c6:: with SMTP id d6mr13707831ljj.4.1577837237218; Tue, 31 Dec 2019 16:07:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 31 Dec 2019 16:07:05 -0800 Message-ID: Subject: Re: Feature request: italic style in region_highlight To: Roman Perepelitsa Cc: Sebastian Gniazdowski , Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, Dec 30, 2019 at 8:27 AM Roman Perepelitsa wrote: > > enter/exit sounds better than my suggestion. Another option: on/off. I > haven't thought of it earlier but now I think it pretty good. Yes, on/off would be fine. > Shall I send a patch? I'd love to have this feature. I don't see why not. > A related question. Would you (zsh elders) be receptive to my adding > percent escapes for italicized (%A and %a) and inverse video (%R and > %r) mode? %S and %s would stay unchanged. I think %R and %r have been preempted for the spell correction prompt (see SPROMPT in the manual, could probably stand to have a mention added in the section with the rest of the prompt expansions). Perhaps the way around this is to use %A/%a for "attribute" the way %F/%f are use for foreground color. Thus %A{03} would be italic (where supported), %A{07} would be reverse, etc. Your call whether to define some counterpart of the ansi_colours array in prompt.c that supplies symbolic names; Functions/Misc/colors has the ECMA-48 table.