Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: End boldface also ends background color
- X-seq: zsh-users 21411
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: End boldface also ends background color
- Date: Thu, 24 Mar 2016 14:34:02 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=ame79MgikyBtdsSaeN5UFdmgsAukJki0t5P2/nJKTPA=; b=T8ZuX7NI54rsH7W+j5GYa7KS/T/n8iWNOpXVyv5ArxDeJDw7VYyhAJUwf61qWz1vpp gc+FOmRpIuWBxaJH+XSpoKPtXXRmAZRH6qKStUcX/DWyclsmaMXiMl6y8OWWqkoxXSN7 /Gw6iby0Dj5NdK/Ynam3kn6Ajx1//56knl4+nb9zRkx9iVANmXu7W4sPIlGEkS3pEaWA sV8FmwKiqRyfAl60suKkXF0CNQLL7MzEmFOk3IMb7OZROy58S6avhU4xFC9OOb6JYAjx GpGeXYjfY1w0yK7Ldqb0ZVvcxe3J+BA4NmOxjY0evRAjtMI2FCsk58XwvclSxrAY1pCl sf2g==
- In-reply-to: <20160324182026.GA20669@chaz.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAJjRh0RPasUzjZr+RFmdTGZLs_gpgx7fb3XjT9uEOSAtpNmgCA@mail.gmail.com> <CAHYJk3S_837wMcu0VgFkuWmrFsmdGT6Tqg4euxvjky=8HOfuGA@mail.gmail.com> <160323185356.ZM2458@torch.brasslantern.com> <20160324103837.678f2f36__45846.6877033517$1458816008$gmane$org@pwslap01u.europe.root.pri> <20160324182026.GA20669@chaz.gmail.com>
On Thu, Mar 24, 2016 at 11:20 AM, Stephane Chazelas
<stephane.chazelas@xxxxxxxxx> wrote:
>
> In short there's no guarantee that resetting one attribute will
> not reset others.
Perhaps what we should do is simply document that %B %U %S %F{} are
not guaranteed to nest. For example:
print -P '%F{red} red %F{blue} blue %f oops, not red %f'
Then people know that they might need to write
%U%Bbold-underline%b%Uunderline%u if that's what they mean (but they
might not get the underline in bold-underline because %B might reset
it).
Or just use $fg et al. from colors; so what if it's a bit verbose?
How often are you re-typing it?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author