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

Running uncap.exe actively closes my CMD shell #22

Open
igreil opened this issue Feb 13, 2022 · 1 comment
Open

Running uncap.exe actively closes my CMD shell #22

igreil opened this issue Feb 13, 2022 · 1 comment

Comments

@igreil
Copy link

igreil commented Feb 13, 2022

It's understood that, in the absence of the -c parameter, uncap.exe runs in the background, i.e. has no visible output. I can run it via "WIN-R uncap.exe" and it behaves as expected.

When invoked from the command line, however (i.e. an instance of CMD.exe already running) uncap.exe will not only run and close itself but the window from which it was called as well, meaning I have to rerun CMD.exe to continue working on the command line. Is that expected behavior?

@ClausAndersen
Copy link

Yes. As it is implmented now it simply hides the current terminal. A better approach would be to detach from the terminal which would leave your window intact - see #29

Because of this the following does not help either:

c:\>cmd /c uncap

But a workaround is to use "start":

c:\>start uncap

This will start a new console which is then hidden. Your current console is then left open as normally expected.

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

2 participants