michael@61: Index: terminal.c michael@61: --- terminal.c.orig 1988-11-26 01:40:43.000000000 +0100 michael@61: +++ terminal.c 2009-01-09 18:15:47.583499911 +0100 michael@61: @@ -6,11 +6,11 @@ michael@61: /* michael@61: * Routines in terminal abstraction: michael@61: * michael@61: - * set_term() michael@61: + * set_cb_term() michael@61: * Initialize terminal, clear the screen. michael@61: * michael@61: - * unset_term() michael@61: - * Return terminal to state before set_term(). michael@61: + * unset_cb_term() michael@61: + * Return terminal to state before set_cb_term(). michael@61: * michael@61: * char2sym(char) michael@61: * Return the symbol used to display the given char in the michael@61: @@ -97,6 +97,14 @@ michael@61: */ michael@61: michael@61: michael@61: +#include michael@61: +#include michael@61: +#include michael@61: +#if (defined(sun) && defined(__svr4__)) michael@61: +#include michael@61: +#else michael@61: +#include michael@61: +#endif michael@61: #include michael@61: #include michael@61: #include michael@61: @@ -216,7 +224,7 @@ michael@61: * and termcap subroutine packages, although the old code is used michael@61: * for screen refresh. michael@61: */ michael@61: -set_term() michael@61: +set_cb_term() michael@61: { michael@61: printf("\n\nInitializing terminal ..."); michael@61: fflush(stdout); michael@61: @@ -609,7 +617,7 @@ michael@61: michael@61: /* Restore the terminal to its original mode. michael@61: */ michael@61: -unset_term() michael@61: +unset_cb_term() michael@61: { michael@61: enter_mode(SMNORMAL); michael@61: Puts(end_kp); /* Can't tell if this is original. */ michael@61: Index: tritab.c michael@61: --- tritab.c.orig 1988-11-26 01:39:37.000000000 +0100 michael@61: +++ tritab.c 2009-01-09 17:44:48.411457903 +0100 michael@61: @@ -4,6 +4,7 @@ michael@61: michael@61: #include michael@61: #include michael@61: +#include michael@61: #include "window.h" michael@61: #include "specs.h" michael@61: #include "cipher.h" michael@61: Index: cipher.c michael@61: --- cipher.c.orig 1988-11-26 01:40:22.000000000 +0100 michael@61: +++ cipher.c 2009-01-09 17:54:12.811182642 +0100 michael@61: @@ -6,6 +6,7 @@ michael@61: michael@61: michael@61: #include michael@61: +#include michael@61: #include michael@61: #include "window.h" michael@61: #include "specs.h" michael@61: Index: start.c michael@61: --- start.c.orig 1988-11-26 01:39:45.000000000 +0100 michael@61: +++ start.c 2009-01-09 18:05:43.601774154 +0100 michael@61: @@ -11,6 +11,7 @@ michael@61: michael@61: michael@61: #include michael@61: +#include michael@61: #include michael@61: #include michael@61: #include "window.h" michael@61: @@ -109,13 +110,13 @@ michael@61: { michael@61: setcursor(MAXHEIGHT, 1); michael@61: fflush(stdout); michael@61: - unset_term(); michael@61: + unset_cb_term(); michael@61: michael@61: kill(getpid(), SIGSTOP); michael@61: michael@61: /* Return here when/if program restarted. */ michael@61: /* Note that the signal mask is restored by longjmp. */ michael@61: - set_term(); michael@61: + set_cb_term(); michael@61: longjmp(saved_stack, 0); michael@61: } michael@61: michael@61: @@ -128,7 +129,7 @@ michael@61: setcursor(MAXHEIGHT, 1); michael@61: printf("\n"); michael@61: fflush(stdout); michael@61: - unset_term(); michael@61: + unset_cb_term(); michael@61: michael@61: kill(getpid(), SIGKILL); michael@61: } michael@61: @@ -192,7 +193,7 @@ michael@61: done(status) michael@61: int status; michael@61: { michael@61: - unset_term(); michael@61: + unset_cb_term(); michael@61: printf("\n"); michael@61: exit(status); michael@61: } michael@61: Index: stats.c michael@61: --- stats.c.orig 1988-11-26 01:40:42.000000000 +0100 michael@61: +++ stats.c 2009-01-09 17:54:22.235822458 +0100 michael@61: @@ -7,6 +7,7 @@ michael@61: michael@61: michael@61: #include michael@61: +#include michael@61: #include michael@61: #include "window.h" michael@61: #include "specs.h" michael@61: Index: cdblocks.c michael@61: --- cblocks.c.orig 1988-11-26 01:39:27.000000000 +0100 michael@61: +++ cblocks.c 2009-01-09 17:58:13.630695396 +0100 michael@61: @@ -10,6 +10,7 @@ michael@61: michael@61: michael@61: #include michael@61: +#include michael@61: #include "window.h" michael@61: #include "layout.h" michael@61: #include "specs.h" michael@61: Index: perm.c michael@61: --- perm.c.orig 1988-11-26 01:39:44.000000000 +0100 michael@61: +++ perm.c 2009-01-09 17:58:19.870669485 +0100 michael@61: @@ -7,6 +7,7 @@ michael@61: michael@61: michael@61: #include michael@61: +#include michael@61: #include "window.h" michael@61: #include "specs.h" michael@61: