node-progress icon indicating copy to clipboard operation
node-progress copied to clipboard

Force tty

Open ryan-frankel opened this issue 7 years ago • 4 comments

ryan-frankel avatar Dec 08 '17 23:12 ryan-frankel

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

GaryTowers avatar Apr 01 '19 00:04 GaryTowers

@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

Codelica avatar May 20 '19 20:05 Codelica

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

db-ryan avatar Sep 24 '19 15:09 db-ryan

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

actuallyReallyAlex avatar Apr 07 '20 07:04 actuallyReallyAlex