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

This commit is contained in:
Christoph Lohmann 2020-12-20 16:34:20 +01:00
parent b87460e37b
commit 59a8c7e4ae

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