diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-04-04 19:15:31 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-04-04 19:15:31 +0000 |
commit | 43803a34570998a5d7508506b55080a6d3c1c500 (patch) | |
tree | 08250f36bfc91268870d497b34483a2ce36813c6 /gtk | |
parent | 8dba97226a0914024dea8e5ecf7e126ad3019abb (diff) | |
download | wireshark-43803a34570998a5d7508506b55080a6d3c1c500.tar.gz |
More console tweaks. But how to prevent prompt from being displayed before
command finishes without requiring, "start /wait <command>"?
svn path=/trunk/; revision=36463
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 3 |
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 |