Commit 78bcfa07 authored by Joe Haddad's avatar Joe Haddad Committed by Tim Neutkens

Skip console clearing when not in a TTY (#6726)

parent 31f6f4c6
...@@ -21,8 +21,10 @@ onExit(() => { ...@@ -21,8 +21,10 @@ onExit(() => {
process.stdout.write('\u001b[?25h') process.stdout.write('\u001b[?25h')
}) })
store.subscribe(state => { store.subscribe(state => {
readline.cursorTo(process.stdout, 0, 0) if (process.stdout.isTTY) {
readline.clearScreenDown(process.stdout) readline.cursorTo(process.stdout, 0, 0)
readline.clearScreenDown(process.stdout)
}
if (state.bootstrap) { if (state.bootstrap) {
console.log(chalk.cyan('Starting the development server ...')) console.log(chalk.cyan('Starting the development server ...'))
......
Markdown is supported
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