Skip to content
Permalink
Browse files

readline: close dumb terminals on Control+C

This commit adds support for closing a readline interface
on Control+C when the terminal is dumb.

PR-URL: #29149
Fixes: #29111
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
cjihrig authored and targos committed Aug 15, 2019
1 parent 964dff8 commit 3c346b8badae36620f1e2265a14668e7a8acb09e
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/readline.js
@@ -823,6 +823,8 @@ function _ttyWriteDumb(s, key) {
// This readline instance is finished
this.close();
}

return;
}

switch (key.name) {

0 comments on commit 3c346b8

Please sign in to comment.
You can’t perform that action at this time.