We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 837e6b4 commit fc582daCopy full SHA for fc582da
packages/react-dev-utils/clearConsole.js
@@ -7,12 +7,8 @@
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*/
9
10
-var isFirstClear = true;
11
function clearConsole() {
12
- // On first run, clear completely so it doesn't show half screen on Windows.
13
- // On next runs, use a different sequence that properly scrolls back.
14
- process.stdout.write(isFirstClear ? '\x1bc' : '\x1b[2J\x1b[0f');
15
- isFirstClear = false;
+ process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H');
16
}
17
18
module.exports = clearConsole;
0 commit comments