Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libcurses/meta.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libcurses/meta.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- src/lib/libcurses/meta.c 2001/06/13 10:45:57 1.4 +++ src/lib/libcurses/meta.c 2001/12/02 09:14:21 1.5 @@ -1,4 +1,4 @@ -/* $NetBSD: meta.c,v 1.4 2001/06/13 10:45:57 wiz Exp $ */ +/* $NetBSD: meta.c,v 1.5 2001/12/02 09:14:21 blymn Exp $ */ /*- * Copyright (c) 1998-2000 Brett Lymn @@ -31,14 +31,12 @@ #include #ifndef lint -__RCSID("$NetBSD: meta.c,v 1.4 2001/06/13 10:45:57 wiz Exp $"); +__RCSID("$NetBSD: meta.c,v 1.5 2001/12/02 09:14:21 blymn Exp $"); #endif /* not lint */ #include "curses.h" #include "curses_private.h" -static int meta_state = FALSE; - /* * meta -- * Turn on or off the terminal meta mode. @@ -52,7 +50,7 @@ meta(/*ARGSUSED*/ WINDOW *win, bool bf) __CTRACE("meta: TRUE\n"); #endif tputs(__tc_mm, 0, __cputchar); - meta_state = TRUE; + _cursesi_screen->meta_state = TRUE; } } else { if (__tc_mo != NULL) { @@ -60,7 +58,7 @@ meta(/*ARGSUSED*/ WINDOW *win, bool bf) __CTRACE("meta: FALSE\n"); #endif tputs(__tc_mo, 0, __cputchar); - meta_state = FALSE; + _cursesi_screen->meta_state = FALSE; } } @@ -74,6 +72,6 @@ meta(/*ARGSUSED*/ WINDOW *win, bool bf) void __restore_meta_state(void) { - meta(NULL, meta_state); + meta(NULL, _cursesi_screen->meta_state); }