[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nano-devel
Subject:    [PATCH 2/2] docs: explain the 'set scrollercolor' option, for coloring the indicator
From:       Benno Schulenberg <bensberg () telfort ! nl>
Date:       2020-08-30 15:04:48
Message-ID: 20200830150448.4966-2-bensberg () telfort ! nl
[Download RAW message or body]

And mention that a background color does not work on libvte before 0.55.

To find out the version of libvte on your system:

  ls -R1 /usr/lib | grep libvte | grep 00 | grep -o "0\..."
---
 doc/nano.texi        | 6 ++++++
 doc/nanorc.5         | 6 ++++++
 doc/sample.nanorc.in | 2 ++
 syntax/nanorc.nanorc | 4 ++--
 4 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/doc/nano.texi b/doc/nano.texi
index 87b6c46a..e12e6a6b 100644
--- a/doc/nano.texi
+++ b/doc/nano.texi
@@ -974,6 +974,12 @@ Regular expressions in @command{nano} are of the extended type \
(ERE).  Save a changed buffer automatically on exit (@kbd{^X}); don't prompt.
 (The old form of this option, @code{set tempfile}, is deprecated.)
 
+@item set scrollercolor @var{fgcolor},@var{bgcolor}
+Use this color combination for the indicator alias "scrollbar".
+(Using a background color here does not work correctly on terminal emulators
+that link to a libvte older than version 0.55.)
+@xref{@code{set functioncolor}} for valid color names.
+
 @item set selectedcolor [bold,][italic,]@var{fgcolor},@var{bgcolor}
 Use this color combination for selected text.
 @xref{@code{set functioncolor}} for valid color names.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
index 015f92f2..a02b3d6d 100644
--- a/doc/nanorc.5
+++ b/doc/nanorc.5
@@ -261,6 +261,12 @@ Regular expressions in \fBnano\fR are of the extended type \
(ERE).  Save a changed buffer automatically on exit (\fB^X\fR); don't prompt.
 (The old form of this option, \fBset tempfile\fR, is deprecated.)
 .TP
+.B set scrollercolor \fIfgcolor\fB,\fIbgcolor\fR
+Specify the color combination to use for the indicator alias "scrollbar".
+(Using a background color here does not work correctly on terminal emulators
+that link to a libvte older than version 0.55.)
+See \fBset titlecolor\fR for more details.
+.TP
 .B set selectedcolor \fR[\fBbold,\fR][\fBitalic,\fR]\fIfgcolor\fB,\fIbgcolor\fR
 Specify the color combination to use for selected text.
 See \fBset titlecolor\fR for more details.
diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in
index 3cde94cb..6fd466bd 100644
--- a/doc/sample.nanorc.in
+++ b/doc/sample.nanorc.in
@@ -203,6 +203,7 @@
 # set errorcolor bold,lightwhite,red
 # set selectedcolor lightwhite,magenta
 # set stripecolor ,yellow
+# set scrollercolor cyan
 # set numbercolor cyan
 # set keycolor cyan
 # set functioncolor green
@@ -212,6 +213,7 @@
 # set errorcolor bold,lightwhite,red
 # set selectedcolor lightwhite,cyan
 # set stripecolor ,yellow
+# set scrollercolor magenta
 # set numbercolor magenta
 # set keycolor lightmagenta
 # set functioncolor magenta
diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc
index 33290e34..14ba93eb 100644
--- a/syntax/nanorc.nanorc
+++ b/syntax/nanorc.nanorc
@@ -8,8 +8,8 @@ color brightred ".*"
 
 # Keywords
 color brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_back \
up|atblanks|autoindent|backup|backwards|boldtext|breaklonglines|casesensitive|constant \
show|cutfromcursor|emptyline|finalnewline|historylog|indicator|jumpyscrolling|linenumb \
ers|locking|morespace|mouse|multibuffer|noconvert|nohelp|nopauses|nonewlines|nowrap|po \
sitionlog|preserve|quickblank|quiet|rawsequences|rebinddelete|regexp|saveonexit|showcu \
rsor|smarthome|smooth|softwrap|suspendable|tabstospaces|trimblanks|unix|view|wordbounds|zap)\>"
                
-color yellow "^[[:space:]]*set[[:space:]]+((error|function|key|number|selected|status \
|stripe|title)color)[[:space:]]+(bold,)?(italic,)?(bright|light)?(white|black|red|blue \
|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latt \
e)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte))?\>"
                
-color brightgreen "^[[:space:]]*set[[:space:]]+(backupdir|brackets|errorcolor|functio \
ncolor|keycolor|matchbrackets|numbercolor|operatingdir|punct|quotestr|selectedcolor|speller|statuscolor|stripecolor|titlecolor|whitespace|wordchars)[[:space:]]+"
 +color yellow "^[[:space:]]*set[[:space:]]+((error|function|key|number|scroller|selec \
ted|status|stripe|title)color)[[:space:]]+(bold,)?(italic,)?(bright|light)?(white|blac \
k|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|o \
range|latte)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte))?\>"
 +color brightgreen "^[[:space:]]*set[[:space:]]+(backupdir|brackets|errorcolor|functi \
oncolor|keycolor|matchbrackets|numbercolor|operatingdir|punct|quotestr|scrollercolor|s \
electedcolor|speller|statuscolor|stripecolor|titlecolor|whitespace|wordchars)[[:space:]]+"
  color brightgreen "^[[:space:]]*set[[:space:]]+(fill[[:space:]]+-?[[:digit:]]+|(guidestripe|tabsize)[[:space:]]+[1-9][0-9]*)\>"
  color brightgreen "^[[:space:]]*bind[[:space:]]+((\^([A-Za-z]|[]/@\^_`]|Space)|([Ss] \
[Hh]-)?[Mm]-[A-Za-z]|[Mm]-([][!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-9 \
]|2[0-4])|Ins|Del)[[:space:]]+([a-z]+|".*")[[:space:]]+(main|help|search|replace(with) \
?|yesno|gotoline|writeout|insert|browser|whereisfile|gotodir|execute|spell|linter|all)([[:space:]]+#|[[:space:]]*$)"
  color brightgreen "^[[:space:]]*unbind[[:space:]]+((\^([A-Za-z]|[]/@\^_`]|Space)|([S \
s][Hh]-)?[Mm]-[A-Za-z]|[Mm]-([][!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0 \
-9]|2[0-4])|Ins|Del)[[:space:]]+(all|main|search|replace(with)?|yesno|gotoline|writeou \
t|insert|ext(ernal)?cmd|help|spell|linter|browser|whereisfile|gotodir)([[:space:]]+#|[[:space:]]*$)"
                
-- 
2.25.4


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic