screen: defeat a VTE/Konsole bug also for the case of --constantshow

When also --nohelp is active and the terminal is so narrow that the
message that --constantshow displays on the bottom row does not fit,
this causes the cursor to be pushed "offscreen".  Some terminal
emulators don't handle this case correctly, and leave the cursor
in an invisible or mistaken position.  Compensate for this by
moving the cursor back to the start of the row.

This fixes https://savannah.gnu.org/bugs/?51335.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
master
Benno Schulenberg 2017-06-29 21:33:29 +02:00
parent 8fbf10428c
commit b93767b54f
1 changed files with 4 additions and 0 deletions

View File

@ -2162,6 +2162,10 @@ void statusline(message_type importance, const char *msg, ...)
waddstr(bottomwin, " ]");
wattroff(bottomwin, interface_color_pair[STATUS_BAR]);
/* Defeat a VTE/Konsole bug, where the cursor can go off-limits. */
if (ISSET(CONSTANT_SHOW) && ISSET(NO_HELP))
wmove(bottomwin, 0, 0);
/* Push the message to the screen straightaway. */
wrefresh(bottomwin);