4.1 sysV Curses SIGWINCH handling

Gregory Bond gnb at bby.oz.au
Mon Oct 8 07:30:00 AEST 1990


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 at melba.bby.oz.au    non-MX: gnb%melba.bby.oz at uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb



More information about the Comp.sys.sun mailing list