Skip to content

Commit

Permalink
readline: close dumb terminals on Control+C
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
cjihrig committed Aug 17, 2019
1 parent 9b7362c commit a5edcee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,8 @@ function _ttyWriteDumb(s, key) {
// This readline instance is finished
this.close();
}

return;
}

switch (key.name) {
Expand Down

0 comments on commit a5edcee

Please sign in to comment.