Up and down keys not working in IRB

F

Frank Church

The up and down keys need to get the command history is not working in
IRB.

They produce ^[[A, ^[[B, ^[[C etc. I am connecting over PuTTY to Fedora
6and I wonder whether the problem is in IRB.

If after logging in to the Fedora 6 account, I login to my dreamhost
account and run IRB the keys work fine. I compiled the ruby with
readline and I suspect that something didn't go right.

Is there some way of checking it?
 
T

Todd Benson

The up and down keys need to get the command history is not working in
IRB.

They produce ^[[A, ^[[B, ^[[C etc. I am connecting over PuTTY to Fedora
6and I wonder whether the problem is in IRB.

If after logging in to the Fedora 6 account, I login to my dreamhost
account and run IRB the keys work fine. I compiled the ruby with
readline and I suspect that something didn't go right.

Is there some way of checking it?

Replace /usr/local/build/ruby-1.8.6 with your ruby build directory below.

$ irb
irb(main):001:0> $LOADED_FEATURES.grep /readline/
=> ["readline.so"]
irb(main):002:0> require 'readline' #already loaded, so should return false
=> false
irb(main):003:0> exit
$ less /usr/local/build/ruby-1.8.6/ext/readline/mkmf.log

hth,
Todd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top