-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 24bit color aka "direct color" aka "truecolor"
Also added several TERMs to Mode as supporting 256 colors. This also adds 256 color TERMs to Mode::TERM_256 and used the mode Regexps inside the support Regexp. This required swapping the require order, because Support now depends on those Regexps from Mode. I matched this up with my local laptop's terminfo DB (Ubuntu 20.04, with ncurses 6.2.20200212, and a bunch of extra terminal packages installed). I did make "ansi" support more conservative and added "^" to a few of the other support cases (tput is still a fallback), but everything else became more liberal. To query terminfo, I ran the following bash script and several like it: ```bash for term in $(toe -a | awk '{ print $1 }' | sort -u | xargs); do printf "%3d %s\n" "$(TERM="$term" tput colors)" "$term" done | sort -n ```
- Loading branch information
Showing
5 changed files
with
42 additions
and
6 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
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
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