Skip to content

Commit 3c346b8

Browse files
cjihrigtargos
authored andcommittedAug 19, 2019
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 964dff8 commit 3c346b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎lib/readline.js

+2
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ function _ttyWriteDumb(s, key) {
823823
// This readline instance is finished
824824
this.close();
825825
}
826+
827+
return;
826828
}
827829

828830
switch (key.name) {

0 commit comments

Comments
 (0)
Please sign in to comment.