From 432bc5a5b191b0cb0c62df8448bfc2eb710a0f5d Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 22 Sep 2016 22:52:59 -0700 Subject: [PATCH] clear cmd line on ctrl-w --- lib/monitor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/monitor.js b/lib/monitor.js index 051c26d1..00542661 100644 --- a/lib/monitor.js +++ b/lib/monitor.js @@ -339,6 +339,11 @@ Dashboard.prototype.layoutCmd = function() { process.exit(0); }); + this.input.key(["C-w"], function() { + self.input.clearValue(); + self.input.focus(); + }); + this.input.key(["up"], function() { var cmd = self.history.getPreviousCommand(); self.input.setValue(cmd);