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

Force tty #168

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Force tty #168

wants to merge 5 commits into from

Conversation

ryan-frankel
Copy link

No description provided.

db-ryan and others added 3 commits December 8, 2017 18:07
…eTTY that will force TTY so that the progress bar can be used with tee and or redirected to an output file.
@GaryTowers
Copy link

Hello! Any plans of merging this?
There is an issue with VSCODE not rendering this on its console (#179)

@Codelica
Copy link

@turbopope any chance you'd consider this one? It would give things like GIT Bash on Windows a workaround. Thanks! MarkBind/markbind#416 (comment)

@db-ryan
Copy link

db-ryan commented Sep 24, 2019

Is there something I am doing incorrect here that makes this PR insufficient or a bad idea?

@actuallyReallyAlex
Copy link

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;
}

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

Successfully merging this pull request may close these issues.

5 participants