We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a873c7 commit fe3e0a0Copy full SHA for fe3e0a0
1 file changed
lib/readline.js
@@ -964,16 +964,11 @@ exports.emitKeypressEvents = emitKeypressEvents;
964
965
// Regexes used for ansi escape code splitting
966
const metaKeyCodeReAnywhere = /(?:\x1b)([a-zA-Z0-9])/;
967
-const metaKeyCodeRe = new RegExp('^' + metaKeyCodeReAnywhere.source + '$');
968
const functionKeyCodeReAnywhere = new RegExp('(?:\x1b+)(O|N|\\[|\\[\\[)(?:' + [
969
'(\\d+)(?:;(\\d+))?([~^$])',
970
'(?:M([@ #!a`])(.)(.))', // mouse
971
'(?:1;)?(\\d+)?([a-zA-Z])'
972
].join('|') + ')');
973
-const functionKeyCodeRe = new RegExp('^' + functionKeyCodeReAnywhere.source);
974
-const escapeCodeReAnywhere = new RegExp([
975
- functionKeyCodeReAnywhere.source, metaKeyCodeReAnywhere.source, /\x1b./.source
976
-].join('|'));
977
978
979
function* emitKeys(stream) {
0 commit comments