xref: /original-bsd/usr.bin/window/wwsuspend.c (revision f82e54c4)
1 #ifndef lint
2 static char sccsid[] = "@(#)wwsuspend.c	3.5 05/23/84";
3 #endif
4 
5 #include "ww.h"
6 #include "tt.h"
7 #include <sys/signal.h>
8 
9 wwsuspend()
10 {
11 	int (*oldsig)();
12 
13 	oldsig = signal(SIGTSTP, SIG_IGN);
14 	wwend();
15 	(void) signal(SIGTSTP, SIG_DFL);
16 	(void) kill(0, SIGTSTP);
17 	(void) signal(SIGTSTP, SIG_IGN);
18 	(void) wwsettty(0, &wwnewtty);
19 	(*tt.tt_init)();
20 	wwredraw();
21 	(void) signal(SIGTSTP, oldsig);
22 }
23