cleanups, add manual page
[unix-history] / usr / src / usr.bin / talk / init_disp.c
index b8fc2f6..9fbb3a7 100644 (file)
@@ -1,6 +1,23 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)init_disp.c        1.2 (Berkeley) %G%";
-#endif
+static char sccsid[] = "@(#)init_disp.c        5.3 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * Initialization code for the display package,
 
 /*
  * Initialization code for the display package,
@@ -17,8 +34,12 @@ static char sccsid[] = "@(#)init_disp.c      1.2 (Berkeley) %G%";
 init_display()
 {
        void sig_sent();
 init_display()
 {
        void sig_sent();
+       struct sigvec sigv;
 
        initscr();
 
        initscr();
+       (void) sigvec(SIGTSTP, (struct sigvec *)0, &sigv);
+       sigv.sv_mask |= sigmask(SIGALRM);
+       (void) sigvec(SIGTSTP, &sigv, (struct sigvec *)0);
        curses_initialized = 1;
        clear();
        refresh();
        curses_initialized = 1;
        clear();
        refresh();