Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.