display: don't let a message write over the second help line
When suspending nano on a Linux console (or FreeBSD console), the helpful message about using the 'fg' command overwrote the start of the second help line, kind of hiding the message. So, output a double newline before the message to make it stand out. Also, drop a pointless cursor movement, as endwin() determines the placement of the cursor all by itself.
Этот коммит содержится в:
родитель
5b07e5fd1f
Коммит
3f0d2fd5ca
@ -1210,12 +1210,11 @@ RETSIGTYPE do_suspend(int signal)
|
|||||||
#ifdef ENABLE_MOUSE
|
#ifdef ENABLE_MOUSE
|
||||||
disable_mouse_support();
|
disable_mouse_support();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Move the cursor to the last line of the screen. */
|
|
||||||
move(LINES - 1, 0);
|
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
endwin();
|
endwin();
|
||||||
|
|
||||||
|
printf("\n\n");
|
||||||
|
|
||||||
/* Display our helpful message. */
|
/* Display our helpful message. */
|
||||||
printf(_("Use \"fg\" to return to nano.\n"));
|
printf(_("Use \"fg\" to return to nano.\n"));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user