Can't use arrow keys on Windows jirb#5
Conversation
|
not sure about these changes ... yet 36c4315 seems reasonable // cc @headius
we shall work-around pushing to RGs ... in the mean time could you check how 1.3.7 is working for you? |
I think so too. But, it is difficult for me to fix in/out so I gave up and created this PR... sorry. I hope this PR is merged if the clever way is difficult or needed long time or many resources for jruby developers. (because arrow keys are disabled on Windows jirb.)
Thank you. I didn't know this. I'll use when new JRuby or new jruby-readline which fixes this issue is released. |
Issue
I can't use arrow keys on Windows jirb.
Versions which this issue occurs
From JRuby 1.7.5
When I type arrow keys,
潯,潼,澑and潭are inputed.From JRuby 9.1.3.0
When I type arrow keys, a cursor doesn't move.
Causes
I found the following two causes.
First cause is JLine bug which was fixed in JLine 2.12. So we need to update JLine version.
(Currently JLine is updated in master branch of
jruby/jruby, but it has not been released.)Second cause is an argument of ConsoleReader constructor.
Related commit is 36c4315.
I can't understand why I can't use arrow keys.
But, it looks good when I changed InputStream to FileInputStream which is default of ConsoleReader constructor.