[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Up and down keys not working in IRB

Frank Church

6/18/2007 11:41:00 AM


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?

--
Posted via http://www.ruby-....

1 Answer

Todd Benson

6/18/2007 4:19:00 PM

0

On 6/18/07, Frank Church <vfcforums@gmail.com> wrote:
>
> 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