From 52cab1ce1a5a3c0ce5b3472dfbd867cf2f390419 Mon Sep 17 00:00:00 2001 From: sjborley Date: Fri, 20 May 2005 13:40:17 +0000 Subject: [PATCH] Under MinGW window is now kept open until a key is pressed --- src/nghelp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nghelp.c b/src/nghelp.c index 95a823151..60c8d6a3a 100644 --- a/src/nghelp.c +++ b/src/nghelp.c @@ -85,7 +85,13 @@ out: } #endif /* X_DISPLAY_MISSING */ - exit(EXIT_NORMAL); +#ifdef HAS_WINDOWS + /* Keep window open untill a key is pressed */ + printf("Press a key to quit\n"); + while( getchar() == EOF) {} +#endif /* HAS_WINDOWS */ + + return EXIT_NORMAL; } void