exit from monitor on ctrl+c
This commit is contained in:
parent
7b45f8d6ea
commit
ea0ea6599e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue