Raise SIGWINCH in SIGHUP, so refresh is safe in ncurses.
This commit is contained in:
parent
b87460e37b
commit
59a8c7e4ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user