mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
general: add the option -g/--showcursor, to match Pico
The nanorc option already exists, but not the corresponding one for the command line.
This commit is contained in:
parent
b38cbfe173
commit
10c9093942
@ -171,6 +171,10 @@ Interpret the Delete key differently so that both Backspace and Delete
|
|||||||
work properly. You should only need to use this option if Backspace
|
work properly. You should only need to use this option if Backspace
|
||||||
acts like Delete on your system.
|
acts like Delete on your system.
|
||||||
.TP
|
.TP
|
||||||
|
.BR \-g ", " \-\-showcursor
|
||||||
|
Make the cursor visible in the file browser, putting it on the
|
||||||
|
highlighted item. Useful for braille users.
|
||||||
|
.TP
|
||||||
.BR \-h ", " \-\-help
|
.BR \-h ", " \-\-help
|
||||||
Show a summary of the available command-line options and exit.
|
Show a summary of the available command-line options and exit.
|
||||||
.TP
|
.TP
|
||||||
@ -250,7 +254,7 @@ continuing it over multiple screen lines. Since
|
|||||||
this option last when using other options (e.g.\& 'nano \-wS$') or pass it
|
this option last when using other options (e.g.\& 'nano \-wS$') or pass it
|
||||||
separately (e.g.\& 'nano \-wS \-$').
|
separately (e.g.\& 'nano \-wS \-$').
|
||||||
.TP
|
.TP
|
||||||
.BR \-a ", " \-b ", " \-e ", " \-f ", " \-g ", " \-j
|
.BR \-a ", " \-b ", " \-e ", " \-f ", " \-j
|
||||||
Ignored, for compatibility with Pico.
|
Ignored, for compatibility with Pico.
|
||||||
|
|
||||||
.SH TOGGLES
|
.SH TOGGLES
|
||||||
|
@ -256,6 +256,11 @@ Interpret the Delete key differently so that both Backspace and Delete
|
|||||||
work properly. You should only need to use this option if Backspace
|
work properly. You should only need to use this option if Backspace
|
||||||
acts like Delete on your system.
|
acts like Delete on your system.
|
||||||
|
|
||||||
|
@item -g
|
||||||
|
@itemx --showcursor
|
||||||
|
Make the cursor visible in the file browser, putting it on the
|
||||||
|
highlighted item. Useful for braille users.
|
||||||
|
|
||||||
@item -h
|
@item -h
|
||||||
@itemx --help
|
@itemx --help
|
||||||
Show a summary of command-line options and exit.
|
Show a summary of command-line options and exit.
|
||||||
@ -372,7 +377,6 @@ separately (e.g.@: @code{nano -wS -$}).
|
|||||||
@itemx -b
|
@itemx -b
|
||||||
@itemx -e
|
@itemx -e
|
||||||
@itemx -f
|
@itemx -f
|
||||||
@itemx -g
|
|
||||||
@itemx -j
|
@itemx -j
|
||||||
Ignored, for compatibility with Pico.
|
Ignored, for compatibility with Pico.
|
||||||
|
|
||||||
|
@ -1998,6 +1998,9 @@ int main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
{"constantshow", 0, NULL, 'c'},
|
{"constantshow", 0, NULL, 'c'},
|
||||||
{"rebinddelete", 0, NULL, 'd'},
|
{"rebinddelete", 0, NULL, 'd'},
|
||||||
|
#ifndef DISABLE_BROWSER
|
||||||
|
{"showcursor", 0, NULL, 'g'},
|
||||||
|
#endif
|
||||||
{"help", 0, NULL, 'h'},
|
{"help", 0, NULL, 'h'},
|
||||||
#ifdef ENABLE_LINENUMBERS
|
#ifdef ENABLE_LINENUMBERS
|
||||||
{"linenumbers", 0, NULL, 'l'},
|
{"linenumbers", 0, NULL, 'l'},
|
||||||
@ -2095,7 +2098,6 @@ int main(int argc, char **argv)
|
|||||||
case 'b':
|
case 'b':
|
||||||
case 'e':
|
case 'e':
|
||||||
case 'f':
|
case 'f':
|
||||||
case 'g':
|
|
||||||
case 'j':
|
case 'j':
|
||||||
/* Pico compatibility flags. */
|
/* Pico compatibility flags. */
|
||||||
break;
|
break;
|
||||||
@ -2204,6 +2206,9 @@ int main(int argc, char **argv)
|
|||||||
case 'd':
|
case 'd':
|
||||||
SET(REBIND_DELETE);
|
SET(REBIND_DELETE);
|
||||||
break;
|
break;
|
||||||
|
case 'g':
|
||||||
|
SET(SHOW_CURSOR);
|
||||||
|
break;
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
case 'i':
|
case 'i':
|
||||||
SET(AUTOINDENT);
|
SET(AUTOINDENT);
|
||||||
|
Loading…
Reference in New Issue
Block a user