Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sneusse
Copy link
Contributor

@sneusse sneusse commented Mar 18, 2022

When packaging UI tools I'd like to hide the windows terminal.

This PR adds one more executable (raylua_r.exe) which will use the windows subsystem instead of the console subsystem

I'm not sure if one more executable is the right approach for the other platforms, on windows that's the only way I'm aware of.

sneusse added 2 commits March 18, 2022 12:54
- use the raylua_r to build executables without the console window
@TSnake41
Copy link
Owner

I like the idea, it would be more reliable than using FreeConsole from ffi to close the console right after it is made (making it almost invisible).
As for other platforms, there is no such way to hide console from showing, in fact, the creation of the terminals depends on the configuration of the system (often there is no such terminal created, and there is no reliable way to enforce one), and is not required by the process initially.
(if a terminal is required with raylib_r, it is still possible to call on Windows the ffi function AllocConsole to create a terminal)

@TSnake41 TSnake41 merged commit 1306640 into TSnake41:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants