Project

General

Profile

Bug #15442

irb behaves strange in Ruby 2.6

Added by ana06 (Ana Maria Martinez Gomez) 4 months ago. Updated 4 months ago.

Status:
Feedback
Priority:
Normal
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

History

Updated by aycabta (aycabta .) 4 months ago

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) 4 months ago

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

ruby -rreadline -ep

Updated by ana06 (Ana Maria Martinez Gomez) 4 months ago

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

#4

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Status changed from Open to Feedback

Also available in: Atom PDF