Raise SIGWINCH in SIGHUP, so refresh is safe in ncurses.

master
Christoph Lohmann 2020-12-20 16:34:20 +01:00
parent b87460e37b
commit 59a8c7e4ae
1 changed files with 2 additions and 5 deletions

View File

@ -60,11 +60,8 @@ reloadcurrentslide(int sig)
{
loadcurrentslide(slidefiles, currentslide);
if (sig == SIGHUP) {
clear();
refresh();
printw("%.*s", currentslidelen, currentslidep);
}
if (sig == SIGHUP)
raise(SIGWINCH); /* Redisplay slide. */
}
void