Skip to content

Commit

Permalink
[exp-internal] Revert "Fixes progress display on non-color tty (yarnp…
Browse files Browse the repository at this point in the history
…kg#4647) (yarnpkg#4697)"

This reverts commit 4c38ca7.
  • Loading branch information
Adam Miskiewicz committed Oct 25, 2017
1 parent 1ccb710 commit b662f38
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/reporters/console/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* @flow */

import tty from 'tty';
import type {Stdout} from '../types.js';

const readline = require('readline');
Expand All @@ -11,9 +10,6 @@ const CLEAR_RIGHT_OF_CURSOR = 1;

export function clearLine(stdout: Stdout) {
if (!supportsColor) {
if (stdout instanceof tty.WriteStream) {
stdout.write(`\r${' '.repeat(stdout.columns - 1)}\r`);
}
return;
}

Expand All @@ -23,7 +19,6 @@ export function clearLine(stdout: Stdout) {

export function toStartOfLine(stdout: Stdout) {
if (!supportsColor) {
stdout.write('\r');
return;
}

Expand Down

0 comments on commit b662f38

Please sign in to comment.