- Since the DISABLE_CURPOS flag is only used in winio.c, reduce
it to a static bool there. Changes to statusbar() and
disable_cursorpos(). (DLR)
+ - Add -U/--quickblank option, a Meta-U toggle, and a
+ "quickblank" rcfile option to blank the statusbar after 1
+ keystroke instead of 25. Note that this is disabled when
+ NANO_SMALL is defined. Changes to toggle_init(), usage(),
+ main(), statusbar(), nanorc.sample, nano.1, and nanorc.5.
+ (DLR, suggested by CHAO Wei-Lun)
- chars.c:
make_mbstring()
- Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
.\" Public License for copying conditions. There is NO warranty.
.\"
.\" $Id$
-.TH NANO 1 "version 1.3.8" "June 16, 2005"
+.TH NANO 1 "version 1.3.8" "June 17, 2005"
.\" Please adjust this date whenever revising the manpage.
.\"
.B \-T \fIcols\fP (\-\-tabsize=\fIcols\fP)
Set the size (width) of a tab to \fIcols\fP columns.
.TP
+.B \-U (\-\-quickblank)
+Do quick statusbar blanking. Statusbar messages will disappear after 1
+keystroke instead of 25.
+.TP
.B \-V (\-\-version)
Show the current version number and author.
.TP
blank characters. Only closing punctuation, optionally followed by
closing brackets, can end sentences.
.TP
+.B set quickblank
+Do quick statusbar blanking. Statusbar messages will disappear after 1
+keystroke instead of 25.
+.TP
.B set quotestr "\fIstring\fP"
The email-quote string, used to justify email-quoted paragraphs. This
is an "extended regular expression" if your system supports them,
##
# set punct ".?!"
+## Do quick statusbar blanking. Statusbar messages will disappear after
+## 1 keystroke instead of 25.
+##
+# set quickblank
+
## The email-quote string, used to justify email-quoted paragraphs.
## This is an extended regular expression if your system supports them,
## otherwise a literal string. Default:
## highlight possible errors and parameters
# color brightwhite "^ *(set|unset|syntax|color).*$"
## set, unset and syntax
-# color cyan "^ *(set|unset) +(autoindent|backup|backupdir|backwards|brackets|casesensitive|const|cut|fill|historylog|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|punct|quotestr|rebinddelete|regexp|smarthome|smooth|speller)\>"
-# color cyan "^ *(set|unset) +(suspend|tabsize|tabstospaces|tempfile|view|whitespace)"
+# color cyan "^ *(set|unset) +(autoindent|backup|backupdir|backwards|brackets|casesensitive|const|cut|fill|historylog|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|punct|quickblank|quotestr|rebinddelete|regexp|smarthome|smooth)\>"
+# color cyan "^ *(set|unset) +(speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace)"
# color green "^ *(set|unset|syntax)\>"
## colors
# color yellow "^ *color *(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
N_("Use of more space for editing"), MORE_SPACE);
toggle_init_one(TOGGLE_TABSTOSPACES_KEY,
N_("Conversion of typed tabs to spaces"), TABS_TO_SPACES);
+ toggle_init_one(TOGGLE_QUICKBLANK_KEY,
+ N_("Quick statusbar blanking"), QUICK_BLANK);
}
#endif /* !NANO_SMALL */
#endif
print1opt(_("-T [#cols]"), _("--tabsize=[#cols]"),
N_("Set width of a tab in cols to #cols"));
+ print1opt("-U", _("--quickblank"),
+ N_("Do quick statusbar blanking"));
print1opt("-V", "--version",
N_("Print version information and exit"));
#ifdef ENABLE_COLOR
{"historylog", 0, NULL, 'H'},
{"noconvert", 0, NULL, 'N'},
{"smooth", 0, NULL, 'S'},
+ {"quickblank", 0, NULL, 'U'},
{"restricted", 0, NULL, 'Z'},
{"autoindent", 0, NULL, 'i'},
{"cut", 0, NULL, 'k'},
while ((optchr =
#ifdef HAVE_GETOPT_LONG
getopt_long(argc, argv,
- "h?ABC:EFHINOQ:ST:VY:Zabcdefgijklmo:pr:s:tvwxz",
+ "h?ABC:EFHINOQ:ST:UVY:Zabcdefgijklmo:pr:s:tvwxz",
long_options, NULL)
#else
getopt(argc, argv,
- "h?ABC:EFHINOQ:ST:VY:Zabcdefgijklmo:pr:s:tvwxz")
+ "h?ABC:EFHINOQ:ST:UVY:Zabcdefgijklmo:pr:s:tvwxz")
#endif
) != -1) {
exit(1);
}
break;
+#ifndef NANO_SMALL
+ case 'U':
+ SET(QUICK_BLANK);
+ break;
+#endif
case 'V':
version();
exit(0);
#define WHITESPACE_DISPLAY (1<<26)
#define MORE_SPACE (1<<27)
#define TABS_TO_SPACES (1<<28)
-#define USE_UTF8 (1<<29)
+#define QUICK_BLANK (1<<29)
+#define USE_UTF8 (1<<30)
/* Control key sequences. Changing these would be very, very bad. */
#define NANO_CONTROL_SPACE 0
#define TOGGLE_WHITESPACE_KEY NANO_ALT_P
#define TOGGLE_MORESPACE_KEY NANO_ALT_O
#define TOGGLE_TABSTOSPACES_KEY NANO_ALT_E
+#define TOGGLE_QUICKBLANK_KEY NANO_ALT_U
#endif /* !NANO_SMALL */
#define MAIN_VISIBLE 12
{"cut", CUT_TO_END},
{"historylog", HISTORYLOG},
{"noconvert", NO_CONVERT},
+ {"quickblank", QUICK_BLANK},
{"smarthome", SMART_HOME},
{"smooth", SMOOTH_SCROLL},
{"tabstospaces", TABS_TO_SPACES},
}
disable_cursorpos = TRUE;
- statusblank = 25;
+ statusblank =
+#ifndef NANO_SMALL
+ ISSET(QUICK_BLANK) ? 1 :
+#endif
+ 25;
}
void bottombars(const shortcut *s)