exit from monitor on ctrl+c

This commit is contained in:
Iuri Matias 2016-09-17 00:08:16 -04:00
parent 7b45f8d6ea
commit ea0ea6599e
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,10 @@ Dashboard.prototype.layoutCmd = function() {
var self = this;
this.input.key(["C-c"], function() {
process.exit(0);
});
this.input.on('submit', function(data) {
if (data !== '') {
self.logText.log('console> ' + data);