Skip to content

Commit 9644da8

Browse files
committed
fix(cli): no longer clear the terminal
1 parent 9407c87 commit 9644da8

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

lib/ui.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ exports.ConsoleUI = class {
113113
}
114114

115115
displayLogo() {
116-
this.clearScreen();
117-
118116
if (this.getWidth() < 50) {
119117
return this.log('Aurelia CLI' + os.EOL);
120118
}
@@ -125,12 +123,6 @@ exports.ConsoleUI = class {
125123
console.log(logo.toString());
126124
});
127125
}
128-
129-
clearScreen() {
130-
process.stdout.write('\x1Bc');
131-
132-
return Promise.resolve();
133-
}
134126
};
135127

136128
function includeOption(cliOptions, option) {

lib/workflow/activities/project-create.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ module.exports = class {
3939

4040
let project = context.state.project = new ProjectTemplate(model, this.options, this.ui);
4141

42-
return this.ui.clearScreen()
43-
.then(() => this.ui.log(this.createProjectDescription(model)))
42+
return this.ui.log(this.createProjectDescription(model))
4443
.then(() => this.projectConfirmation(project))
4544
.then(answer => {
4645
if (answer.value === 'yes') {
4746
let configurator = require(`../../commands/new/buildsystems/${model.bundler.id}`);
4847
configurator(project, this.options);
4948

5049
return project.create(this.ui, this.options.hasFlag('here') ? undefined : process.cwd())
51-
.then(() => this.ui.clearScreen())
5250
.then(() => this.ui.log('Project structure created and configured.' + os.EOL))
5351
.then(() => project.renderManualInstructions())
5452
.then(() => context.next(this.nextActivity));

lib/workflow/activities/project-install.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ module.exports = class {
6262

6363
message += ' If you want to build your app for production, run <magenta><bold>au build --env prod</bold></magenta>. That\'s just about all there is to it. If you need help, simply run <magenta><bold>au help</bold></magenta>.';
6464

65-
return this.ui.clearScreen()
66-
.then(() => this.ui.log(transform('<bgGreen><white><bold>Congratulations</bold></white></bgGreen>') + os.EOL + os.EOL))
65+
return this.ui.log(transform('<bgGreen><white><bold>Congratulations</bold></white></bgGreen>') + os.EOL + os.EOL)
6766
.then(() => this.ui.log(`Congratulations! Your Project "${project.model.name}" Has Been Created!` + os.EOL + os.EOL))
6867
.then(() => project.renderManualInstructions())
6968
.then(() => this.ui.log(createLines(transform(message), '', this.ui.getWidth())))

0 commit comments

Comments
 (0)