From 916d75fd21ce719d2c27950bcb0ab543c93369ee Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 9 Oct 2017 21:45:20 +0100 Subject: [PATCH] Colored prompt --- CliClient/app/app-gui.js | 1 + CliClient/app/command-ls.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CliClient/app/app-gui.js b/CliClient/app/app-gui.js index fef246786e..3f8e83a981 100644 --- a/CliClient/app/app-gui.js +++ b/CliClient/app/app-gui.js @@ -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'); }); diff --git a/CliClient/app/command-ls.js b/CliClient/app/command-ls.js index 228a49e8e5..acba8c5d28 100644 --- a/CliClient/app/command-ls.js +++ b/CliClient/app/command-ls.js @@ -112,7 +112,7 @@ class Command extends BaseCommand { rows.push(row); } - cliUtils.printArray(this.stdout, rows); + cliUtils.printArray(this.stdout.bind(this), rows); } }