Unverified Commit 1e561c9f authored by Allan Bogh's avatar Allan Bogh Committed by GitHub
Browse files

Merge pull request #1 from ajbogh/ajbogh-disable-clear-console

Update clearConsole.js
1 merge request!12821Update clearConsole.js
Showing with 4 additions and 0 deletions
+4 -0
......@@ -8,6 +8,10 @@
'use strict';
function clearConsole() {
if(process.env.DISABLE_CLEAR_CONSOLE) {
return;
}
process.stdout.write(
process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment