summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-09 13:12:24 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-09 13:13:16 -0500
commitb3cd2ee4aeaf01930c88ac6320afa347e74e91aa (patch)
tree6e03e7faeb3bedac188d022658a3226a6fd42d2a /doc
parent216f754287f2123f45d274f0a003182524efd43d (diff)
downloadgrep-b3cd2ee4aeaf01930c88ac6320afa347e74e91aa.tar.gz
doc: improve GREP_COLORS doc (Bug#57696)
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.in.15
-rw-r--r--doc/grep.texi3
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/grep.in.1 b/doc/grep.in.1
index 0423866c..5b3123dd 100644
--- a/doc/grep.in.1
+++ b/doc/grep.in.1
@@ -1007,8 +1007,9 @@ The shell command
lists locales that are currently available.
.TP
.B GREP_COLORS
-Specifies the colors and other attributes
-used to highlight various parts of the output.
+Controls how the
+.B \-\^\-color
+option highlights output.
Its value is a colon-separated list of capabilities
that defaults to
.B ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36
diff --git a/doc/grep.texi b/doc/grep.texi
index c3711724..a8089cc5 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -864,8 +864,7 @@ overridden by @env{GREP_COLORS}. Instead of
@item GREP_COLORS
@vindex GREP_COLORS @r{environment variable}
@cindex highlight markers
-This variable specifies the colors and other attributes
-used to highlight various parts of the output.
+This variable controls how the @option{--color} option highlights output.
Its value is a colon-separated list of @code{terminfo} capabilities
that defaults to @samp{ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36}
with the @samp{rv} and @samp{ne} boolean capabilities omitted (i.e., false).