Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
End boldface also ends background color
- X-seq: zsh-users 21398
- From: Dominik Ritter <dritter03@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: End boldface also ends background color
- Date: Tue, 22 Mar 2016 20:44:57 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=WugiG5ZWkNXao/fSTczTDkJE89wLft/FniiHsFx4VvE=; b=f1WCSh7dUw5edFx+b4JmjepLg3DP76oCnRRB6NM9X42lS2eM/Su6UXCBOrnQDMdKkJ GxjZz3Rw8rrP5OJv63UpgUeQgc8YO1Bqzgr4OJD6FAAc7vtg7b/JmLEQ8PihZ0XC0q8h rYMlwcqNPQTdkEfaHhQLyywcB5sGRKH7oVTQmYVPBTiiwOY99GE7Z1pfzbSMbFu2pWI1 v7OFktFBmszxXQSOw59/lpQz7GwzMf5RXWPfjjDJZ4WKy7odAWsOTXVZrsOe0Npi6t9V L9UKVsaJFlnHlJW/CKp4parWbf11k8D8KByRFEzcOhay1D3JmBiJxbQXWkRx6WICCgFp GqDw==
- 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
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author