diff options
author | Marc Tiehuis <marctiehuis@gmail.com> | 2017-04-14 12:08:53 +1200 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-01-29 18:49:50 -0500 |
commit | a8543f798d5cd0ccfb038c2b80a640f02521c370 (patch) | |
tree | 24b7321b9b81d2d5e492138d86d31b20a38fdb94 /src | |
parent | ef9e17d28aee0d9259b26467102f0ce7e007156e (diff) |
termcolor: add extended color support
This commit adds 256-color and 24-bit truecolor support to ripgrep.
This only provides output support on ANSI terminals. If the Windows
console is used for coloring, then 256-color and 24-bit color settings
are ignored.
Diffstat (limited to 'src')
-rw-r--r-- | src/app.rs | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -288,7 +288,16 @@ lazy_static! { color settings for {type}.\n\nFor example, the following \ command will change the match color to magenta and the \ background color for line numbers to yellow:\n\n\ - rg --colors 'match:fg:magenta' --colors 'line:bg:yellow' foo."); + rg --colors 'match:fg:magenta' --colors 'line:bg:yellow' foo.\n\n\ + Extended colors can be used for {value} when the terminal \ + supports ANSI color sequences. These are specified as either \ + 'x' (256-color) or 'x,x,x' (24-bit truecolor) where x is a \ + number between 0 and 255 inclusive. \n\nFor example, the \ + following command will change the match background color to that \ + represented by the rgb value (0,128,255):\n\n\ + rg --colors 'match:bg:0,128,255'\n\nNote that the the intense \ + and nointense style flags will have no effect when used \ + alongside these extended color codes."); doc!(h, "encoding", "Specify the text encoding of files to search.", "Specify the text encoding that ripgrep will use on all files \ |