More console tweaks. But how to prevent prompt from being displayed before
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 4 Apr 2011 19:15:31 +0000 (19:15 +0000)
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 4 Apr 2011 19:15:31 +0000 (19:15 +0000)
command finishes without requiring, "start /wait <command>"?

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36463 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main.c

index 118987f2f41908dd579b18ddcb39cf55cab27b97..3eecc5ea5211b77385df2fa32252befbbdb74567 100644 (file)
@@ -3095,6 +3095,7 @@ create_console(void)
      */
     if (!AttachConsole(ATTACH_PARENT_PROCESS)) {
       if (AllocConsole()) {
+        console_wait = TRUE;
         SetConsoleTitle(_T("Wireshark Debug Console"));
       } else {
         return;   /* couldn't create console */
@@ -3104,6 +3105,8 @@ create_console(void)
     ws_freopen("CONIN$", "r", stdin);
     ws_freopen("CONOUT$", "w", stdout);
     ws_freopen("CONOUT$", "w", stderr);
+    fprintf(stdout, "\n");
+    fprintf(stderr, "\n");
 
     /* Now register "destroy_console()" as a routine to be called just
        before the application exits, so that we can destroy the console