diff --git a/pdcurses/initscr.c b/pdcurses/initscr.c index 27182449..29d52050 100644 --- a/pdcurses/initscr.c +++ b/pdcurses/initscr.c @@ -38,7 +38,7 @@ # undef wnoutrefresh #endif -RCSID("$Id: initscr.c,v 1.66 2006/08/10 07:17:15 wmcbrine Exp $"); +RCSID("$Id: initscr.c,v 1.67 2006/08/11 07:08:22 wmcbrine Exp $"); const char *_curses_notice = "PDCurses 3.0 - Public Domain 2006"; @@ -61,9 +61,7 @@ int c_ungch[NUNGETCH]; /* array of ungotten chars */ /* Global definitions for setmode routines */ -struct cttyset c_sh_tty = {0}; /* tty modes for def_shell_mode */ -struct cttyset c_pr_tty = {0}; /* tty modes for def_prog_mode */ -struct cttyset c_save_tty = {0}; +struct cttyset ctty[3] = {{0}, {0}, {0}}; #ifdef PDC_WIDE cchar_t _wacs_map[] = { diff --git a/pdcurses/kernel.c b/pdcurses/kernel.c index 8da86291..655c4b81 100644 --- a/pdcurses/kernel.c +++ b/pdcurses/kernel.c @@ -36,11 +36,13 @@ # undef wmove #endif -RCSID("$Id: kernel.c,v 1.57 2006/08/11 06:17:48 wmcbrine Exp $"); +RCSID("$Id: kernel.c,v 1.58 2006/08/11 07:08:22 wmcbrine Exp $"); RIPPEDOFFLINE linesripped[5]; char linesrippedoff = 0; +enum { PDC_SH_TTY, PDC_PR_TTY, PDC_SAVE_TTY }; + /*man-start************************************************************** Name: kernel