Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide/mimize console #5

Open
fprijate opened this issue Mar 28, 2024 · 0 comments
Open

How to hide/mimize console #5

fprijate opened this issue Mar 28, 2024 · 0 comments

Comments

@fprijate
Copy link

fprijate commented Mar 28, 2024

Deno has an compile option --no-terminal (which should work on win, but it doesn't).

github isue #21091

So i tried :

import { GetConsoleWindow } from 'https://win32.deno.dev/0.4.1/System.Console';
import {
   SW_HIDE,
   ShowWindow,
} from 'https://win32.deno.dev/0.4.1/UI.WindowsAndMessaging';

function hideConsole() {
   ShowWindow(GetConsoleWindow(), SW_HIDE);
}

console.log('before');
setInterval(() => console.log('after'), 5000);

hideConsole();

Console is still open.

`

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

No branches or pull requests

1 participant