diff --git a/doc/nano.1 b/doc/nano.1 index b68b7890..684fa0f0 100644 --- a/doc/nano.1 +++ b/doc/nano.1 @@ -357,6 +357,12 @@ The line plus column numbers and the character code are displayed only when \fB\-\-constantshow\fR is used, and can be toggled on and off with \fBM-C\fR. The state flags are displayed only when \fB\-\-stateflags\fR is used. .TP +.BR \-0 ", " \-\-zero +Hide the minibar (or the title bar plus status bar) and use all rows +of the terminal for showing the text of the buffer. Only significant +messages appear on the status bar, and disappear upon the next keystroke. +This "hidden interface" mode can be toggled with \fBM-Z\fR. +.TP .BR \-! ", " \-\-magic When neither the file's name nor its first line give a clue, try using libmagic to determine the applicable syntax. diff --git a/doc/nano.texi b/doc/nano.texi index a1a10a31..60a60e76 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -702,6 +702,13 @@ The line plus column numbers and the character code are displayed only when @code{--constantshow} is used, and can be toggled on and off with @kbd{M-C}. The state flags are displayed only when @code{--stateflags} is used. +@item -0 +@itemx --zero +Hide the minibar (or the title bar plus status bar) and use all rows +of the terminal for showing the text of the buffer. Only significant +messages appear on the status bar, and disappear upon the next keystroke. +This "hidden interface" mode can be toggled with @kbd{M-Z}. + @item -! @itemx --magic When neither the file's name nor its first line give a clue, @@ -1139,6 +1146,12 @@ probably want to unset @code{wordbounds}. Let an unmodified @kbd{Backspace} or @kbd{Delete} erase the marked region (instead of a single character, and without affecting the cutbuffer). +@item set zero +Hide the minibar (or the title bar plus status bar) and use all rows +of the terminal for showing the text of the buffer. Only significant +messages appear on the status bar, and disappear upon the next keystroke. +This "hidden interface" mode can be toggled with @kbd{M-Z}. + @end table @node Syntax Highlighting diff --git a/doc/nanorc.5 b/doc/nanorc.5 index d4159cf6..7d363447 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -396,6 +396,12 @@ probably want to unset \fBwordbounds\fR. .B set zap Let an unmodified Backspace or Delete erase the marked region (instead of a single character, and without affecting the cutbuffer). +.TP +.B set zero +Hide the minibar (or the title bar plus status bar) and use all rows +of the terminal for showing the text of the buffer. Only significant +messages appear on the status bar, and disappear upon the next keystroke. +This "hidden interface" mode can be toggled with \fBM-Z\fR. .SH SYNTAX HIGHLIGHTING Coloring the different syntactic elements of a file diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in index a1c59aa8..8ad0ef2d 100644 --- a/doc/sample.nanorc.in +++ b/doc/sample.nanorc.in @@ -197,6 +197,9 @@ ## of a single character, and without affecting the cutbuffer). # set zap +## Hide the bars and use the whole terminal for editable text. +# set zero + ## Paint the interface elements of nano. These are examples; there are ## no colors by default, except for errorcolor and spotlightcolor. diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc index d678c31c..0d33662e 100644 --- a/syntax/nanorc.nanorc +++ b/syntax/nanorc.nanorc @@ -10,7 +10,7 @@ color brightred ".*" color yellow "^[[:blank:]]*(i?color|set[[:blank:]]+((error|function|key|mini|number|prompt|scroller|selected|spotlight|status|stripe|title)color))[[:blank:]]+(bold,)?(italic,)?(((bright|light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray)?(,(((light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray))?\>" # Keywords -color brightgreen "^[[:blank:]]*(set|unset)[[:blank:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|boldtext|bookstyle|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|historylog|indicator|jumpyscrolling|linenumbers|locking|magic|minibar|mouse|multibuffer|noconvert|nohelp|nonewlines|positionlog|preserve|quickblank|rawsequences|rebinddelete|regexp|saveonexit|showcursor|smarthome|softwrap|stateflags|tabstospaces|trimblanks|unix|wordbounds|zap)\>" +color brightgreen "^[[:blank:]]*(set|unset)[[:blank:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|boldtext|bookstyle|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|historylog|indicator|jumpyscrolling|linenumbers|locking|magic|minibar|mouse|multibuffer|noconvert|nohelp|nonewlines|positionlog|preserve|quickblank|rawsequences|rebinddelete|regexp|saveonexit|showcursor|smarthome|softwrap|stateflags|tabstospaces|trimblanks|unix|wordbounds|zap|zero)\>" color brightgreen "^[[:blank:]]*set[[:blank:]]+(backupdir|brackets|errorcolor|functioncolor|keycolor|matchbrackets|minicolor|numbercolor|operatingdir|promptcolor|punct|quotestr|scrollercolor|selectedcolor|speller|spotlightcolor|statuscolor|stripecolor|titlecolor|whitespace|wordchars)[[:blank:]]+" color brightgreen "^[[:blank:]]*set[[:blank:]]+(fill[[:blank:]]+-?[[:digit:]]+|(guidestripe|tabsize)[[:blank:]]+[1-9][0-9]*)\>" color brightgreen "^[[:blank:]]*bind[[:blank:]]+((\^([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)[[:blank:]]+([a-z]+|".*")[[:blank:]]+(main|help|search|replace(with)?|yesno|gotoline|writeout|insert|execute|browser|whereisfile|gotodir|spell|linter|all)\>"