summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 118987f2f4..3eecc5ea52 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -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