Update default colorization (#904)

* colorization experiment

* todo

* Add dependency on github.com/johnkerl/lumin

* lumin dependency

* more badges in README.md

* on-line help for bold/underine/reverse

* update webdocs
This commit is contained in:
John Kerl 2022-01-30 14:12:47 -05:00 committed by GitHub
parent 1a8d7edfd0
commit bef2fa74de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 259 additions and 489 deletions

View file

@ -600,8 +600,11 @@ OUTPUT-COLORIZATION FLAGS
If environment-variable settings and command-line flags are both provided, the
latter take precedence.
Please do mlr `--list-color-codes` to see the available color codes (like 170),
and `mlr --list-color-names` to see available names (like `orchid`).
Colors can be specified using names such as "red" or "orchid": please see
`mlr --list-color-names` to see available names. They can also be specified using
numbers in the range 0..255, like 170: please see `mlr --list-color-codes`.
You can also use "bold", "underline", and/or "reverse". Additionally, combinations of
those can be joined with a "-", like "red-bold", "bold-170", "bold-underline", etc.
--always-color or -C Instructs Miller to colorize output even when it
normally would not. Useful for piping output to `less
@ -3110,4 +3113,4 @@ SEE ALSO
2022-01-27 MILLER(1)
2022-01-30 MILLER(1)

View file

@ -2,12 +2,12 @@
.\" Title: mlr
.\" Author: [see the "AUTHOR" section]
.\" Generator: ./mkman.rb
.\" Date: 2022-01-27
.\" Date: 2022-01-30
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "MILLER" "1" "2022-01-27" "\ \&" "\ \&"
.TH "MILLER" "1" "2022-01-30" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Portability definitions
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -719,8 +719,11 @@ How you can control colorization:
If environment-variable settings and command-line flags are both provided, the
latter take precedence.
Please do mlr `--list-color-codes` to see the available color codes (like 170),
and `mlr --list-color-names` to see available names (like `orchid`).
Colors can be specified using names such as "red" or "orchid": please see
`mlr --list-color-names` to see available names. They can also be specified using
numbers in the range 0..255, like 170: please see `mlr --list-color-codes`.
You can also use "bold", "underline", and/or "reverse". Additionally, combinations of
those can be joined with a "-", like "red-bold", "bold-170", "bold-underline", etc.
--always-color or -C Instructs Miller to colorize output even when it
normally would not. Useful for piping output to `less