[Windows] terminal open when running the app

122 views
Skip to first unread message

Rodolfo Zacche de Aguiar

unread,
Mar 16, 2019, 2:38:48 PM3/16/19
to Desktop Embedding for Flutter
Hello guys, there is any way to avoid the windows terminal to be opened when start the embeded app (like macos) ?
Thanks.

Stuart Morgan

unread,
Mar 18, 2019, 11:48:30 AM3/18/19
to Rodolfo Zacche de Aguiar, Desktop Embedding for Flutter
I don't have a background in Windows programming, but from a little bit of searching it sounds like if you don't want your application to launch a terminal you'd use the WINDOWS subsystem rather than the CONSOLE subsystem.

If someone wants to send a PR to make the example app use different subsystems for Debug/Release, or to switch it unconditionally and use AllocConsole to set up a console in debug (which would probably be clearer), I'm happy to update the example.

-Stuart

On Sat, Mar 16, 2019 at 11:38 AM Rodolfo Zacche de Aguiar <rodol...@gmail.com> wrote:
Hello guys, there is any way to avoid the windows terminal to be opened when start the embeded app (like macos) ?
Thanks.

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
To post to this group, send email to flutter-deskto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-desktop-embedding-dev/491b3b72-e4fc-49ed-8b33-c96886a5c468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bharg...@gmail.com

unread,
Jul 16, 2019, 2:02:13 PM7/16/19
to Desktop Embedding for Flutter
Is there any progress in this ?

Stuart Morgan

unread,
Jul 16, 2019, 3:48:30 PM7/16/19
to bharg...@gmail.com, Desktop Embedding for Flutter
Nobody has sent a PR like the one I described in my previous email, no.

Since the current Windows embedding (and by extension, example app) is a temporary placeholder that will be replaced, and since we don't have any support for release builds on desktop yet, it's very low priority for the project at the moment. If someone feels strongly about changing this behavior soon, they will need to send a PR.

-Stuart

On Tue, Jul 16, 2019 at 11:02 AM <bharg...@gmail.com> wrote:
Is there any progress in this ?

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
To post to this group, send email to flutter-deskto...@googlegroups.com.

myselfjam...@gmail.com

unread,
Jul 31, 2019, 2:46:48 AM7/31/19
to Desktop Embedding for Flutter
that can be done by platform-specific code 

void HideConsole() { ::ShowWindow(::GetConsoleWindow(), SW_HIDE); }

void ShowConsole() { ::ShowWindow(::GetConsoleWindow(), SW_SHOW); }

bool IsConsoleVisible() {
  return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}

call hideConsole function in main 
Reply all
Reply to author
Forward
0 new messages