-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow keys don't work in irb #99
Comments
I'll look at this next week sometime. |
winpty doesn't attempt to set the |
Ruby is using rbreadline.rb to read a command line, which uses the CRT _getch / _kbhit functions. It seems these functions return the scan code bytes, and for certain keys (like functions keys / arrow keys), the byte is preceded by 0xE0 for enhanced and 0x00 otherwise. (The preceding byte might be 0xE1 in some cases too?) |
FWIW: I tried entering the alternate terminal mode (DECCKM) without enabling The problem seems confined to the arrow keys and the block of 6 keys (Ins, Del, Home, End, PgUp, PgDn). I'm really only familiar with US keyboards, though, so I'm unsure. I tested with a full-size US keyboard and noticed that, with the NumLock off, the navigation keys on the keypad do not produce |
Steps to reproduce:
\e[D
) to move the cursor, only the ding sound is madeDownstream issue: microsoft/vscode#14577
The text was updated successfully, but these errors were encountered: