aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jest-util/build/clearLine.js
blob: 240c71a77bd98a1d6590eff3ab4dca91ea4ef1cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 * 
 */
/* global stream$Writable */
'use strict';

module.exports = stream => {
  if (process.stdout.isTTY) {
    stream.write('\x1b[999D\x1b[K');
  }
};