--no-console not working anymore?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
hexaae
Posts: 51
Joined: Fri Jun 25, 2010 5:04 pm

--no-console not working anymore?

Post by hexaae »

I used to add "--no-console" to completely hide scummVM shell window on Windows 10+...
I've upgraded to:
ScummVM 2.6.1 (Oct 17 2022 10:09:38)
Features compiled in: Vorbis FLAC MP3 RGB zLib MPEG2 FluidSynth Theora AAC A/52 FreeType2 FriBiDi JPEG PNG GIF taskbar TTS cloud (servers, local) TinyGL OpenGL (with shaders)

and see the --no-console doesn't work as expected anymore: it still opens a console window at launch, but is empty without output.
Is this an oversight?
User avatar
rootfather
ScummVM Lead
Posts: 181
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: --no-console not working anymore?

Post by rootfather »

I just checked with the upcoming ScummVM 2.7.0.

When I use the --no-console option, the console host window flashes for a brief moment and then closes. However, I am still on the "old" console host because I don't like the new Windows Terminal, so behavior might be different there.
hexaae
Posts: 51
Joined: Fri Jun 25, 2010 5:04 pm

Re: --no-console not working anymore?

Post by hexaae »

Installed new 2.7.0 but still the same: I run it with this INI file:
https://paste.sh/kHIGnoR1#Z1t50JYk06iC54_iT8M7vfgr
It opens in fullscreen, and when I quit I see for a brief moment its prompt/shell/terminal window closing on the desktop... :(
Last edited by hexaae on Sun Feb 26, 2023 9:24 pm, edited 1 time in total.
User avatar
rootfather
ScummVM Lead
Posts: 181
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: --no-console not working anymore?

Post by rootfather »

Do you use the "old" console host or the new Windows Terminal one? For Windows Terminal, indeed it doesn't seem to work for me anymore.
hexaae
Posts: 51
Joined: Fri Jun 25, 2010 5:04 pm

Re: --no-console not working anymore?

Post by hexaae »

I'm on Win11 now and yes, it runs in the new terminal (configured for old MSDOS Prompt at default, not PowerShell...).
User avatar
rootfather
ScummVM Lead
Posts: 181
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: --no-console not working anymore?

Post by rootfather »

Ah, yes, then MIcrosoft did change how the console is handled in general.

This is some sort of recurring theme - the console handling tends to break every few Windows releases. It is not entirely uncommon that this feature breaks, but we'll have to investigate - this issue is always pretty labor intensive to deal with.
hexaae
Posts: 51
Joined: Fri Jun 25, 2010 5:04 pm

Re: --no-console not working anymore?

Post by hexaae »

Ouch... Thanks for prompt support!
User avatar
rootfather
ScummVM Lead
Posts: 181
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: --no-console not working anymore?

Post by rootfather »

The root cause of this issue was a bug in Windows Terminal itself: https://github.com/microsoft/terminal/issues/14416

I just tested with the latest Windows Terminal Preview and this restores the correct behavior.
Post Reply