Add more clarity on color-name choices

This commit is contained in:
John Kerl 2022-01-31 23:21:44 -05:00
parent 01ed355bca
commit 4b9227b5a8
4 changed files with 9 additions and 12 deletions

View file

@ -67,6 +67,9 @@ If environment-variable settings and command-line flags are both provided, the l
## How to see available color codes
You can use `mlr --list-color-codes` to see the available color codes (like `170`), and `mlr --list-color-names` to see available names (like `orchid`).
Use `mlr --list-color-names` to see available names, like `orchid`. Colors 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 all of these can be joined
with a `-`, like `red-bold`, `bold-170`, `bold-underline`, etc.
![pix/colorization2.png](pix/colorization2.png)

View file

@ -51,6 +51,9 @@ If environment-variable settings and command-line flags are both provided, the l
## How to see available color codes
You can use `mlr --list-color-codes` to see the available color codes (like `170`), and `mlr --list-color-names` to see available names (like `orchid`).
Use `mlr --list-color-names` to see available names, like `orchid`. Colors 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 all of these can be joined
with a `-`, like `red-bold`, `bold-170`, `bold-underline`, etc.
![pix/colorization2.png](pix/colorization2.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Before After
Before After

View file

@ -8,9 +8,9 @@ RELEASES
? mlr join --left-fields a,b,c
? rank
? ?foo and ??foo @ repl help
o default colors; bold/underline/reverse
o fmt/unfmt/regex doc
o FAQ/examples reorg
k default colors; bold/underline/reverse
k array concat
k format/unformat
k split
@ -23,15 +23,6 @@ RELEASES
================================================================
FEATURES
----------------------------------------------------------------
* colors
o lumin import
k lumin verstag
- lumin needs bold/underline/reversed -> help; plus x-y-z syntax
k wup for local go.mod override
o RT w/ -C
o olh/webdocs x several
----------------------------------------------------------------
* natural sort order
https://github.com/facette/natsort