1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Colored prompt

This commit is contained in:
Laurent Cozic 2017-10-09 21:45:20 +01:00
parent 4edef57764
commit 916d75fd21
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ class AppGui {
const consoleWidget = new ConsoleWidget();
consoleWidget.hStretch = true;
consoleWidget.name = 'console';
consoleWidget.prompt = this.term().format('^gJoplin^ ^y>^ ');
consoleWidget.on('accept', (event) => {
this.processCommand(event.input, 'console');
});

View File

@ -112,7 +112,7 @@ class Command extends BaseCommand {
rows.push(row);
}
cliUtils.printArray(this.stdout, rows);
cliUtils.printArray(this.stdout.bind(this), rows);
}
}