-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support true color when setting colors from JQ_COLORS
The buffers for colors were fixed-size and we cannot use longer color definitions like true color, e.g. `JQ_COLORS='38;2;135;200;250'`, or both foreground and background colors, e.g. `JQ_COLORS='38;5;81;48;5;19'`. This commit fixes the implementation to support longer color definitions by allocating the buffers dynamically. This resolves #2426.
- Loading branch information
Showing
2 changed files
with
81 additions
and
50 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 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