commit 8560a0a22518a461b7641255f325d7d110560dee
parent 52d851a1aad884862a6b342d61ffef1e05e8aa26
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 10 Aug 2018 19:32:45 +0200
docs: mention that "normal" can be used to give things the default color
Diffstat:
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -1001,8 +1001,11 @@ The default value is @t{"#"}.
Display all pieces of text that match the
extended regular expression "regex" with foreground color "fgcolor" and
background color "bgcolor", at least one of which must be specified.
-Valid colors for foreground and background are: white, black, red,
-blue, green, yellow, magenta, and cyan. You may use the prefix "bright"
+Valid names for foreground and background color are:
+@code{white}, @code{black}, @code{blue}, @code{green},
+@code{red}, @code{cyan}, @code{yellow}, @code{magenta}, and @code{normal}
+--- where @code{normal} means the default foreground or background color.
+You may use the prefix @code{bright}
to get a stronger color highlight for the foreground. If your
terminal supports transparency, not specifying a "bgcolor" tells @command{nano}
to attempt to use a transparent background.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -356,9 +356,11 @@ The default value is "\fB#\fP".
Display all pieces of text that match
the extended regular expression \fIregex\fP with foreground color
\fIfgcolor\fP and background color \fIbgcolor\fP, at least one of which
-must be specified. Valid colors for foreground and background
-are: white, black, red, blue, green, yellow, magenta, and cyan. You may
-use the prefix "bright" to get a stronger color highlight for the
+must be specified. Valid names for foreground and background colors are:
+.BR white ", " black ", " blue ", " green ", " red ", "
+.BR cyan ", " yellow ", " magenta ", and " normal
+-- where \fBnormal\fR means the default foreground or background color.
+You may use the prefix \fBbright\fR to get a stronger color highlight for the
foreground. If your terminal supports transparency, not specifying a
\fIbgcolor\fP tells \fBnano\fP to attempt to use a transparent
background.