mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Colored prompt
This commit is contained in:
parent
4edef57764
commit
916d75fd21
@ -109,6 +109,7 @@ class AppGui {
|
|||||||
const consoleWidget = new ConsoleWidget();
|
const consoleWidget = new ConsoleWidget();
|
||||||
consoleWidget.hStretch = true;
|
consoleWidget.hStretch = true;
|
||||||
consoleWidget.name = 'console';
|
consoleWidget.name = 'console';
|
||||||
|
consoleWidget.prompt = this.term().format('^gJoplin^ ^y>^ ');
|
||||||
consoleWidget.on('accept', (event) => {
|
consoleWidget.on('accept', (event) => {
|
||||||
this.processCommand(event.input, 'console');
|
this.processCommand(event.input, 'console');
|
||||||
});
|
});
|
||||||
|
@ -112,7 +112,7 @@ class Command extends BaseCommand {
|
|||||||
rows.push(row);
|
rows.push(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
cliUtils.printArray(this.stdout, rows);
|
cliUtils.printArray(this.stdout.bind(this), rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user