Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: End boldface also ends background color
- X-seq: zsh-users 21412
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: End boldface also ends background color
- Date: Thu, 24 Mar 2016 23:43:50 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=jUrG06E16MsbHiAfbg2iDWUdmIT8UBTspdiI6Iey3KQ=; b=le6S+mUmUEM8QpABT+bEwjOaeKRpjAGdhEnvpRMWtbbLYSGLtcxNjOwlk6M1yx+ZzS lpD/KqQ0FyPUgHeonX2C5mXqkyONb5RuWbaS7Jal7A6z0IVq7Awen3dclyg/Qta17mDv TUhn/PlVuy4UK+cs6xbgGq0GSo0DvkhZx/Y7cerX4SwD5X9QR/LrPmvgnowJpg0fDDS0 ATz1BWnWnd4KkNoepMK1fLV1ZWn2var6w4jxBCkmd8hduZuczDDVIacHAZSowLuT9SWS VkbrDYfzhNNdK28X+Tfd3tIu7OAwTin9Kz300tY/haskhRgS4v92O3Nd9+L128LVNvyM 9xlw==
- In-reply-to: <CAH+w=7aEitgjr4+eoSwkezEKhexbsthPGBqsj=mm7JkYz3X53w@mail.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> <CAH+w=7aEitgjr4+eoSwkezEKhexbsthPGBqsj=mm7JkYz3X53w@mail.gmail.com>
On Thu, Mar 24, 2016 at 10:34 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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?
Using $fg from colors doesn't buy you anything over using the builtin
prompt sequences though. They also do not have an un-bold sequence.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author