1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Switched to chalk

This commit is contained in:
Laurent Cozic 2017-10-13 18:25:58 +01:00
parent d53b6e5a72
commit 4f1133c59a

View File

@ -5,6 +5,7 @@ import { cliUtils } from './cli-utils.js';
import { reducer, defaultState } from 'lib/reducer.js';
import { _ } from 'lib/locale.js';
const chalk = require('chalk');
const tk = require('terminal-kit');
const TermWrapper = require('tkwidgets/framework/TermWrapper.js');
const Renderer = require('tkwidgets/framework/Renderer.js');
@ -110,7 +111,7 @@ class AppGui {
const consoleWidget = new ConsoleWidget();
consoleWidget.hStretch = true;
consoleWidget.name = 'console';
consoleWidget.prompt = this.term().format('^gJoplin^ ^y>^ ');
consoleWidget.prompt = chalk.green('Joplin') + ' ' + chalk.magenta('>') + ' ';
consoleWidget.on('accept', (event) => {
this.processCommand(event.input, 'console');
});