total_refresh()
- Refresh bottomwin using the value of currshortcut, and change
the code around do_refresh() calls to accommodate this. (DLR)
+ - Split out the code that blanks the screen before refreshing it
+ into the new function total_blank().
+ do_help()
+ - Refresh the screen when Ctrl-L is pressed in the help browser,
+ as Pico does. (DLR)
- configure.ac:
- Remove specific references to control key shortcuts. (DLR)
- Check for the wide version of ncurses, without which multibyte
IFHELP(nano_nextline_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
+ sc_init_one(&help_list, NANO_REFRESH_KEY, N_("Refresh"),
+ IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY,
+ NANO_NO_KEY, VIEW, NULL);
+
sc_init_one(&help_list, NANO_EXIT_KEY, exit_msg,
IFHELP(nano_exit_msg, NANO_NO_KEY), NANO_EXIT_FKEY,
NANO_NO_KEY, VIEW, NULL);
"(M) symbol and can be entered using either the Esc, Alt or "
"Meta key depending on your keyboard setup. Also, pressing Esc "
"twice and then typing a three-digit decimal number from 000 to "
- " 255 will enter the character with the corresponding value. "
+ "255 will enter the character with the corresponding value. "
"The following keystrokes are available in the main editor "
- " window. Alternative keys are shown in parentheses:\n\n");
+ "window. Alternative keys are shown in parentheses:\n\n");
htx = _(htx);
void blank_topbar(void);
void blank_edit(void);
void blank_statusbar(void);
-void check_statusblank(void);
void blank_bottombars(void);
+void check_statusblank(void);
char *display_string(const char *buf, size_t start_col, size_t len, bool
dollars);
void nanoget_repaint(const char *buf, const char *inputbuf, size_t x);
void edit_refresh(void);
void edit_update(topmidnone location);
int do_yesno(bool all, const char *msg);
+void total_blank(void);
void total_refresh(void);
void display_main_list(void);
void do_cursorpos(bool constant);
mvwaddstr(bottomwin, 0, 0, hblank);
}
+void blank_bottombars(void)
+{
+ if (!ISSET(NO_HELP)) {
+ mvwaddstr(bottomwin, 1, 0, hblank);
+ mvwaddstr(bottomwin, 2, 0, hblank);
+ }
+}
+
void check_statusblank(void)
{
if (statusblank > 1)
}
}
-void blank_bottombars(void)
-{
- if (!ISSET(NO_HELP)) {
- mvwaddstr(bottomwin, 1, 0, hblank);
- mvwaddstr(bottomwin, 2, 0, hblank);
- }
-}
-
/* Convert buf into a string that can be displayed on screen. The
* caller wants to display buf starting with column start_col, and
* extending for at most len columns. start_col is zero-based. len is
return ok;
}
-void total_refresh(void)
+void total_blank(void)
{
clearok(topwin, TRUE);
clearok(edit, TRUE);
clearok(topwin, FALSE);
clearok(edit, FALSE);
clearok(bottomwin, FALSE);
+}
+
+void total_refresh(void)
+{
+ total_blank();
titlebar(NULL);
edit_refresh();
bottombars(currshortcut);
break;
}
- if (line == old_line && kbinput != ERR)
- goto skip_redisplay;
+ if (kbinput == NANO_REFRESH_KEY)
+ total_blank();
+ else {
+ if (line == old_line && kbinput != ERR)
+ goto skip_redisplay;
- blank_edit();
+ blank_edit();
+ }
assert(COLS > 5);