node-progress
node-progress copied to clipboard
Force tty
Hello! Any plans of merging this? There is an issue with VSCODE not rendering this on its console (#179)
@turbopope any chance you'd consider this one? It would give things like GIT Bash on Windows a workaround. Thanks! https://github.com/MarkBind/markbind/issues/416#issuecomment-448112057
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;
}