Skip to content

Commit 4475b76

Browse files
piscisaureusry
authored andcommitted
Readline: use symbolic key names instead of ascii control codes
1 parent 8c9b2d1 commit 4475b76

3 files changed

Lines changed: 210 additions & 184 deletions

File tree

lib/_debugger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ function Interface() {
578578
});
579579

580580
this.stdin = process.openStdin();
581-
this.stdin.addListener('data', function(chunk) {
582-
term.write(chunk);
581+
this.stdin.addListener('keypress', function(s, key) {
582+
term.write(s, key);
583583
});
584584

585585
term.setPrompt('debug> ');

0 commit comments

Comments
 (0)