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);
|
loadcurrentslide(slidefiles, currentslide);
|
||||||
|
|
||||||
if (sig == SIGHUP) {
|
if (sig == SIGHUP)
|
||||||
clear();
|
raise(SIGWINCH); /* Redisplay slide. */
|
||||||
refresh();
|
|
||||||
printw("%.*s", currentslidelen, currentslidep);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user