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