Project

General

Profile

Actions

Bug #15442

closed

irb behaves strange in Ruby 2.6

Bug #15442: irb behaves strange in Ruby 2.6

Added by ana06 (Ana Maria Martinez Gomez) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Ruby 2.6 (trunk)
[ruby-core:90633]

Description

When trying to press the UP, DOWN, LEFT and RIGHT keys in Ruby 2.6 strange characters are printed instead of moving (or showing the last executed instruction). This works properly for me in Ruby 2.5.

irb(main):004:0> ^[[A^[[A^[[B^[[C^[[D

Updated by aycabta (aycabta .) almost 7 years ago Actions #1 [ruby-core:90637]

The keyboard line editing behaviors are based on GNU Readline. Please install GNU Readline before you build Ruby.

For example, if you're using Ubuntu 18.10, run sudo apt install libreadline-dev and re-build Ruby.

Updated by mrkn (Kenta Murata) almost 7 years ago Actions #2 [ruby-core:90639]

You can check the availability of readline by this command line:

ruby -rreadline -ep

Updated by ana06 (Ana Maria Martinez Gomez) almost 7 years ago Actions #3 [ruby-core:90641]

I think I didn't have current trunk version. It seems to work no. Sorry

Updated by hsbt (Hiroshi SHIBATA) almost 7 years ago Actions #4

  • Status changed from Open to Feedback

Updated by jeremyevans0 (Jeremy Evans) over 6 years ago Actions #6

  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom