From 08bc2647adefb3081107e627afb875228912dde2 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Tue, 20 May 2003 11:23:09 +0000 Subject: modify condition for waiting for a key press --- wcon.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'wcon.c') diff --git a/wcon.c b/wcon.c index ac83a72..8b91fe3 100644 --- a/wcon.c +++ b/wcon.c @@ -44,6 +44,9 @@ # define StdError 2 #endif +#define SHOW_EXECUTION_TIME_MASK 8 +#define NO_RESULT_MASK 16 + #ifdef WINDOWS HANDLE std_input_handle,std_output_handle,std_error_handle; int console_window_visible,console_allocated,console_flag=0; @@ -1200,7 +1203,7 @@ int clean_main (void) else std_error_handle=GetStdHandle (STD_ERROR_HANDLE); - console_window_visible=flags & 16 ? 0 : 1; + console_window_visible=flags & NO_RESULT_MASK ? 0 : 1; if (heap_size_multiple