The update now uses clrtoeol() and clrtobot() instead of clear() so
that lines are cleared before being re-displayed, without a global
blink. Added the ^L key to refresh the screen globally.
int nb_printed_lines = 0;
int nb_printed_lines = 0;
use_default_colors();
addstr("\n");
use_default_colors();
addstr("\n");
buffer[k++] = '\n';
buffer[k++] = '\0';
buffer[k++] = '\n';
buffer[k++] = '\0';
// Highlight the highlighted line ...
if(l == new_line) {
// Highlight the highlighted line ...
if(l == new_line) {
addnstr("[empty choice]\n", console_width);
}
addnstr("[empty choice]\n", console_width);
}
// Draw the modeline
move(0, 0);
// Draw the modeline
move(0, 0);
kill_after_cursor(pattern, &cursor_position);
}
kill_after_cursor(pattern, &cursor_position);
}
+ else if(key == '\014') { // ^L
+ // I suspect that we may sometime mess up the display
+ clear();
+ }
+
update_screen(¤t_line, &temporary_line, motion,
nb_lines, labels, cursor_position, pattern);
update_screen(¤t_line, &temporary_line, motion,
nb_lines, labels, cursor_position, pattern);