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
When using the readline emacs Ctrl-W shortcut (available in bash and zsh), which is a shortcut for "cut word," removing the previous word from the prompt, the action works but leaves control codes in the input.
To Reproduce
Steps to reproduce the behavior:
node example.js
Ctrl+W, Ctrl+W, Ctrl+W, foo
{
twitter: '@\x17\x17\x17foo',
Expected behavior
Ideally, cut word works and there are no control codes. Second best option is that Ctrl+W is ignored (#330 appears to do this.)
Describe the bug
When using the readline emacs Ctrl-W shortcut (available in bash and zsh), which is a shortcut for "cut word," removing the previous word from the prompt, the action works but leaves control codes in the input.
To Reproduce
Steps to reproduce the behavior:
node example.js
Expected behavior
Ideally, cut word works and there are no control codes. Second best option is that Ctrl+W is ignored (#330 appears to do this.)
System
Additional context
These seem as though they should be supported by node readline: https://nodejs.org/api/readline.html#tty-keybindings
The text was updated successfully, but these errors were encountered: