-
Notifications
You must be signed in to change notification settings - Fork 222
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
Force tty #168
base: master
Are you sure you want to change the base?
Force tty #168
Conversation
…eTTY that will force TTY so that the progress bar can be used with tee and or redirected to an output file.
Hello! Any plans of merging this? |
@turbopope any chance you'd consider this one? It would give things like GIT Bash on Windows a workaround. Thanks! MarkBind/markbind#416 (comment) |
Is there something I am doing incorrect here that makes this PR insufficient or a bad idea? |
A workaround can be found by @matthewjumpsoffbuildings in their comment here. My tweak of their workaround is the following: if (!process.stderr.isTTY) {
const tty = ttyStream.WriteStream.prototype;
Object.keys(tty).forEach((key) => {
process.stderr[key] = tty[key];
});
process.stderr.columns = 80;
} |
No description provided.