diff --git a/lib/ui.js b/lib/ui.js index f535ba5b4..bdef1b3f6 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -113,8 +113,6 @@ exports.ConsoleUI = class { } displayLogo() { - this.clearScreen(); - if (this.getWidth() < 50) { return this.log('Aurelia CLI' + os.EOL); } @@ -125,12 +123,6 @@ exports.ConsoleUI = class { console.log(logo.toString()); }); } - - clearScreen() { - process.stdout.write('\x1Bc'); - - return Promise.resolve(); - } }; function includeOption(cliOptions, option) { diff --git a/lib/workflow/activities/project-create.js b/lib/workflow/activities/project-create.js index 962717db3..c7ddd192d 100644 --- a/lib/workflow/activities/project-create.js +++ b/lib/workflow/activities/project-create.js @@ -39,8 +39,7 @@ module.exports = class { let project = context.state.project = new ProjectTemplate(model, this.options, this.ui); - return this.ui.clearScreen() - .then(() => this.ui.log(this.createProjectDescription(model))) + return this.ui.log(this.createProjectDescription(model)) .then(() => this.projectConfirmation(project)) .then(answer => { if (answer.value === 'yes') { @@ -48,7 +47,6 @@ module.exports = class { configurator(project, this.options); return project.create(this.ui, this.options.hasFlag('here') ? undefined : process.cwd()) - .then(() => this.ui.clearScreen()) .then(() => this.ui.log('Project structure created and configured.' + os.EOL)) .then(() => project.renderManualInstructions()) .then(() => context.next(this.nextActivity)); diff --git a/lib/workflow/activities/project-install.js b/lib/workflow/activities/project-install.js index 1d7a3a815..9db0271df 100644 --- a/lib/workflow/activities/project-install.js +++ b/lib/workflow/activities/project-install.js @@ -62,8 +62,7 @@ module.exports = class { message += ' If you want to build your app for production, run au build --env prod. That\'s just about all there is to it. If you need help, simply run au help.'; - return this.ui.clearScreen() - .then(() => this.ui.log(transform('Congratulations') + os.EOL + os.EOL)) + return this.ui.log(transform('Congratulations') + os.EOL + os.EOL) .then(() => this.ui.log(`Congratulations! Your Project "${project.model.name}" Has Been Created!` + os.EOL + os.EOL)) .then(() => project.renderManualInstructions()) .then(() => this.ui.log(createLines(transform(message), '', this.ui.getWidth())))