Skip to content

How to automatically minimize the terminal that accompanies startup? #6911

Closed Answered by yk0n9
yk0n9 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I've solved it, instead of disabling the terminal, it auto-minimizes. I call this system function when registering HWND for Tauri. This is what I need.

unsafe {
        let hwnd = GetConsoleWindow();
        ShowWindow(hwnd, SW_HIDE);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yk0n9
Comment options

Answer selected by FabianLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants