diff --git a/_sandbox/index.js b/_sandbox/index.js
index d98cfa4..33548de 100644
--- a/_sandbox/index.js
+++ b/_sandbox/index.js
@@ -1,9 +1,9 @@
/* eslint-disable */
const unsed = 'I am unused';
-
+//
export default class MyComponent extends React.Component {
render() {
return
Hello
}
-}
\ No newline at end of file
+}
diff --git a/src/output.js b/src/output.js
index 4558edb..4150556 100644
--- a/src/output.js
+++ b/src/output.js
@@ -57,12 +57,8 @@ class Debugger {
}
clearConsole () {
- if (!this.capturing && this.enabled && process.stdout.isTTY) {
- // Fill screen with blank lines. Then move to 0 (beginning of visible part) and clear it
- const blank = '\n'.repeat(process.stdout.rows)
- console.log(blank)
- readline.cursorTo(process.stdout, 0, 0)
- readline.clearScreenDown(process.stdout)
+ if (!this.capturing && this.enabled) {
+ process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H');
}
}