You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readline: improve unicode support and tab completion
1. This reduces the number of write operations used during tab
completion.
2. The tab completion calculated the string width using the length
of the string instead of using the actual width. That is fixed.
3. The key decoder is now capable of handling characters composed
out of two code points. That reduces the number of "keypress"
events that are emitted which again lowers the amount of writes
triggered.
PR-URL: #31288
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Copy file name to clipboardExpand all lines: lib/internal/readline/utils.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,6 @@ function stripVTControlCharacters(str) {
163
163
returnstr.replace(ansi,'');
164
164
}
165
165
166
-
167
166
/*
168
167
Some patterns seen in terminal key escape codes, derived from combos seen
169
168
at http://www.midnight-commander.org/browser/lib/tty/key.c
0 commit comments