From 0bf381e01d62defdee9ac429b3e2e75942347885 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 18 Feb 2017 19:12:02 +0100 Subject: [PATCH] cpitf.c, for Windows, introduce csh variable "win_console" to reflect whether this .exe is a "console" build --- src/frontend/cpitf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/cpitf.c b/src/frontend/cpitf.c index 03eefaaa7..9f4a99add 100644 --- a/src/frontend/cpitf.c +++ b/src/frontend/cpitf.c @@ -240,6 +240,11 @@ ft_cpinit(void) #endif #endif +/* set a variable to announce windows console (to be used in unselecting plotting) */ +#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(HAS_WINGUI) + cp_vset("win_console", CP_BOOL, &t); +#endif + /* NGSPICEDATADIR has been set to path "$dprefix/share/ngspice" in configure.ac, Spice_Lib_Dir has been set to NGSPICEDATADIR in conf.c, may be overridden by environmental variable SPICE_LIB_DIR in ivars().