Skip to content

Commit 6ea12a7

Browse files
author
Daniel Verejan
authored
Update the string that clears the console.
facebook#1914 I've tested it with Windows 10 and 7, node versions from ~5.0.0 up to 7.7.0. Didn't managed to test it on 8 but it should be fine.
1 parent f762728 commit 6ea12a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/react-dev-utils/clearConsole.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
'use strict';
1111

1212
function clearConsole() {
13-
process.stdout.write(
14-
process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'
15-
);
13+
process.stdout.write('\x1B[2J\x1B[3J\x1B[H');
1614
}
1715

1816
module.exports = clearConsole;

0 commit comments

Comments
 (0)