[comp.sys.sun] 4.1 sysV Curses SIGWINCH handling

gnb@bby.oz.au (Gregory Bond) (10/08/90)

We have just installed SunOs 4.1 on some machines and are contemplating
moving to the sysV CURSES package from the BSD based one in 4.0.3.

What we need to know is how to catch the SIGWINCH signal so our
applications can resize when the window is sized.  What we did under 4.0.3
was, more or less,

static void winch_handler()
{
     endwin();
     LINES = COLS = 0;
     initscr();
     /* Redisplay everything, based on new LINES, COLS */
}

What is the trick required under the sys-V version???

Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb