zsh-users
 help / color / mirror / code / Atom feed
* End boldface also ends background color
@ 2016-03-22 19:44 Dominik Ritter
  2016-03-22 21:00 ` Mikael Magnusson
  0 siblings, 1 reply; 15+ messages in thread
From: Dominik Ritter @ 2016-03-22 19:44 UTC (permalink / raw)
  To: zsh-users

Hi List!

I have a Problem regarding boldface mode. If I change the background
color of a string, and want to set a part of that string in boldface,
the background color gets ended as well.

Example:
print -P '%K{black} %F{white}%Bhello%b world'

The boldface ending sequence, also ends the background color. So only
"hello" gets printed white on black, "world" gets printed in white
(without background).

This seems like a bug to me.. Anyone else can confirm that?
Btw. I am on ZSH 5.2 (latest homebrew).

Of course, there are some workarounds:

- Start the background color again, after ending boldface.
Well. Possible, but quite verbose.

- Use $fg_bold[white] and $fg_no_bold[white] instead of %B and %b.
Also quite verbose..

Best regards,
Dominik Ritter


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-03-25  0:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22 19:44 End boldface also ends background color Dominik Ritter
2016-03-22 21:00 ` Mikael Magnusson
2016-03-24  1:53   ` Bart Schaefer
2016-03-24 10:38     ` Peter Stephenson
2016-03-24 14:53       ` Danek Duvall
2016-03-24 17:26         ` Bart Schaefer
2016-03-24 18:08           ` Danek Duvall
2016-03-24 17:21       ` Mikael Magnusson
2016-03-24 17:33       ` Bart Schaefer
2016-03-24 17:39         ` Peter Stephenson
2016-03-24 18:00           ` Bart Schaefer
     [not found]     ` <20160324103837.678f2f36__45846.6877033517$1458816008$gmane$org@pwslap01u.europe.root.pri>
2016-03-24 18:20       ` Stephane Chazelas
2016-03-24 21:34         ` Bart Schaefer
2016-03-24 22:43           ` Mikael Magnusson
2016-03-25  0:23             ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).