Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: End boldface also ends background color
- X-seq: zsh-users 21410
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: End boldface also ends background color
- Date: Thu, 24 Mar 2016 18:20:26 +0000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+jbG/vBmeg08dTC3scxerG3ETI+i4IVcCURIt2q8FrU=; b=ZyOGDYSRm0ec2jP2CBOHhZfSKxLXoqh9q6ejlkrPybaMTWM1Ca8G9QRuKTHAFsF3yd LMb4UeCxtofenxdIZlTLDJrRPfk9pEsLJlXZN0S7tGbyeRuafkmkAL3hAyo7FLSuKc+c 08gw5gnHXh97Qb1xlQwcoEyrvmulM6F6w+e23XFcUu8mtOJAfbpkBK/RRdz71WX/Z93P 12ZN6/gCdExfLxXQa9ttN+vCmnkQTj5pAbD00+PMZ0WFUFMW279Sn1QtDkOFXOcbc9yi Z53y/Gl6OiIBuluhEkl0nSPc/8+xhsmdUKks/HLpTa0TAzcMG4hRot4Sx7IXnDA5co3M j+kg==
- In-reply-to: <20160324103837.678f2f36__45846.6877033517$1458816008$gmane$org@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- 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>
2016-03-24 10:38:37 +0000, Peter Stephenson:
[...]
> Even in terminfo there doesn't seem to be exit_bold_mode, unlike
> standout, reverse and underline (though it looks like standout maps to
> reverse here).
[...]
See also:
https://groups.google.com/forum/#!msg/comp.unix.programmer/IPIB4VWAK8M/BfJM-CbNVzUJ
In short there's no guarantee that resetting one attribute will
not reset others.
A solution could be to keep track of what attributes are on and
set all attributes for each of the %b/%B...
on %B (if so was previously on): \e[0;1;3m (bold + so) (tput sgr
1 0 0 0 1 0 0 0 0), on %b: \e[0;3m (so) (tput sgr 1 0 0 0 0 0 0
0 0).
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author