From ea0ea6599ec72e94d2c489b8835235f224e23b0e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 17 Sep 2016 00:08:16 -0400 Subject: [PATCH] exit from monitor on ctrl+c --- lib/monitor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/monitor.js b/lib/monitor.js index f2e33844..0a35f07d 100644 --- a/lib/monitor.js +++ b/lib/monitor.js @@ -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);