qulogic/libgnt

Respect the original SIGWINCH's handler SA_SIGINFO field
trac-16680
2017-09-25, Daniel Kamil Kozar
eaba4e3c577b
Respect the original SIGWINCH's handler SA_SIGINFO field

Imported from https://developer.pidgin.im/ticket/16680 , authored by
marcus. When chaining the original SIGWINCH, make sure to optionally
call it with the extra arguments that are available when it was
installed with SA_SIGINFO.
#include <ncurses.h>
int main()
{
int ch;
initscr();
noecho();
cbreak();
refresh();
WINDOW *win = newpad(20, 30);
box(win, 0, 0);
prefresh(win, 0, 0, 0, 0, 19, 29);
doupdate();
while ((ch = getch())) {
printw("%d ", ch);
refresh();
}
endwin();
return 0;
}