We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When starting some programs using exec.Cmd it will start them as buffering. Which means you don't see the live-output from the program.
When you have access to the source, this can be changed with:
// #include <stdio.h> // #include <errno.h> import "C" func init() { C.setvbuf(C.stdout, nil, C._IONBF, 0) }
However it's possible to use something like https://github.com/kr/pty to avoid this problem. kr/pty doesn't have Windows support, but based on https://www.codeproject.com/Articles/16163/Real-Time-Console-Output-Redirection and https://gist.github.com/zhangyoufu/be36035e94b8c0dcb1239a3c8b07a3b1... it should be possible to implement them.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When starting some programs using exec.Cmd it will start them as buffering. Which means you don't see the live-output from the program.
When you have access to the source, this can be changed with:
However it's possible to use something like https://github.com/kr/pty to avoid this problem. kr/pty doesn't have Windows support, but based on https://www.codeproject.com/Articles/16163/Real-Time-Console-Output-Redirection and https://gist.github.com/zhangyoufu/be36035e94b8c0dcb1239a3c8b07a3b1... it should be possible to implement them.
The text was updated successfully, but these errors were encountered: