summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-01-06 20:07:29 -0500
committerAndrew Gallant <jamslam@gmail.com>2017-01-06 20:09:51 -0500
commitb187c1a8175d88b743e2e225dbec98661f7a2f94 (patch)
treebfb55fdc1e8704fd2a63d6ce922e527b62921faa /doc
parentf7a2fe30d4f0fe055e63a630c940383a1d63d6a9 (diff)
Rejigger bold and intense settings.
Previously, ripgrep would only emit the 'bold' ANSI escape sequence if no foreground or background color was set. Instead, it would convert colors to their "intense" versions if bold was set. The intent was to do the same thing on Windows and Unix. However, this had a few negative side effects: 1. Omitting the 'bold' ANSI escape when 'bold' was set is surprising. 2. Intense colors can look quite bad and be hard to read. To fix this, we introduce a new setting called 'intense' in the --colors flag, and thread that down through to the public API of the `termcolor` crate. The 'intense' setting has environment specific behavior: 1. In ANSI mode, it will convert the selected color to its "intense" variant. 2. In the Windows console, it will make the text "intense." There is no longer any "smart" handling of the 'bold' style. The 'bold' ANSI escape is always emitted when it is selected. In the Windows console, the 'bold' setting now has no effect. Note that this is a breaking change. Fixes #266, #293
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.14
-rw-r--r--doc/rg.1.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index f7595671..0dfd3f07 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 1.19.1
.\"
-.TH "" "" "" "" ""
+.TH "rg" "1"
.hy
.SH NAME
.PP
@@ -162,7 +162,7 @@ This flag may be provided multiple times.
Settings are applied iteratively.
Colors are limited to one of eight choices: red, blue, green, cyan,
magenta, yellow, white and black.
-Styles are limited to either nobold or bold.
+Styles are limited to nobold, bold, nointense or intense.
.RS
.PP
The format of the flag is {type}:{attribute}:{value}.
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 3dc1a443..b6ed8808 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -111,7 +111,7 @@ Project home page: https://github.com/BurntSushi/ripgrep
: This flag specifies color settings for use in the output. This flag may be
provided multiple times. Settings are applied iteratively. Colors are limited
to one of eight choices: red, blue, green, cyan, magenta, yellow, white and
- black. Styles are limited to either nobold or bold.
+ black. Styles are limited to nobold, bold, nointense or intense.
The format of the flag is {type}:{attribute}:{value}. {type} should be one
of path, line or match. {attribute} can be fg, bg or style. Value is either