fprintf (stdout, _("whiptail (newt): %s\n"), VERSION);
}
-static void handleSighup(int signum) {
- exit(DLG_ERROR);
-}
-
#if 0
/* FIXME Copied from newt.c
* Place somewhere better -- dialogboxes? -- amck
char * text;
const char * nextArg;
char * end;
- struct sigaction sa;
int height;
int width;
int fd = -1;
if (open("/dev/tty", O_RDWR) != 0) perror("open /dev/tty");
}
- memset(&sa, 0, sizeof(sa));
- sa.sa_handler = handleSighup;
- sigaction(SIGWINCH, &sa, NULL);
-
newtInit();
newtCls();