-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set_color: don't set color to black before resetting attributes
I was surprised to see: > set_color normal | string escape \e\[30m\e\(B\e\[m I only expected to see a sgr0 here. Cleanup a nearby `else { if (...) {` and comment with a bogus example.
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This old fix of mine is lame, we probably don't want to actually cause the attributes to be reset. Also, this would still be broken for
--background
because we only did it for the fg case. I should probably output a real no-op like a NUL or DEL.