been working for a dozen years.
* src/winio.c (statusbar): Update the screen immediately whenever a
message has been posted on the status bar.
+ * src/winio.c (statusbar), src/nano.c (do_input): Turn the cursor off
+ when writing in the status bar, and on when waiting for input.
2016-02-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Condense the descriptions of command-key
/* Restore the terminal to its previous state. */
terminal_init();
- /* Turn the cursor back on for sure. */
- curs_set(1);
-
/* Redraw the contents of the windows that need it. */
blank_statusbar();
wnoutrefresh(bottomwin);
/* Restore the terminal to its previous state. */
terminal_init();
- /* Turn the cursor back on for sure. */
- curs_set(1);
-
/* Do the equivalent of what both mutt and Minimum Profit do:
* Reinitialize all the windows based on the new screen
* dimensions. */
const sc *s;
bool have_shortcut;
+ /* Turn the cursor on when waiting for input. */
+ curs_set(1);
+
/* Read in a character. */
input = get_kbinput(edit);
/* Set up the terminal state. */
terminal_init();
- /* Turn the cursor on for sure. */
- curs_set(1);
-
#ifdef DEBUG
fprintf(stderr, "Main: set up windows\n");
#endif
/* Restore the terminal to its previous state. */
terminal_init();
- /* Turn the cursor back on for sure. */
- curs_set(1);
-
if (!WIFEXITED(alt_spell_status) || WEXITSTATUS(alt_spell_status) != 0) {
#ifndef NANO_TINY
/* Turn the mark back on if it was on before. */
/* Restore the terminal to its previous state. */
terminal_init();
- /* Turn the cursor back on for sure. */
- curs_set(1);
-
if (!WIFEXITED(format_status) || WEXITSTATUS(format_status) != 0)
finalstatus = invocation_error(openfile->syntax->formatter);
else {
return;
}
+ /* Turn the cursor off while fiddling in the statusbar. */
+ curs_set(0);
+
blank_statusbar();
bar = charalloc(mb_cur_max() * (COLS - 3));