I had ruby 1.6.2 which came with my mandrake 8.0. I just upgraded to ruby
1.6.8 (compiled from source), and now in irb the “up” key doesn’t work
anymore, instead ^[[A is displayed on the screen…
I'm sorry if it's basic UNIX/linux knowledge.. I don't find anything on
google, also because google scrambles the string “^[[A”.
And in the time being programming in ruby has become horrible, as I really
depended in this irb feature…
thank for any answer,
emmanuel
···
–
“Droit devant soi, on ne peut pas aller bien loin”
- Le petit prince, Antoine de Saint Exupéry
I had ruby 1.6.2 which came with my mandrake 8.0. I just upgraded to ruby
1.6.8 (compiled from source), and now in irb the "up" key doesn't work
anymore, instead ^[[A is displayed on the screen...
Verify that ruby has build the extension readline
pigeon% ruby -rreadline -e 1
pigeon%
If it give an error, goto ruby-1.6.8/ext/readline and run
I am using ruby 1.6.8 (2002-12-24) [i586-mswin32] installed with PragProg’s
one-click installer on Windows.
I do not have “up” key problem in irb.
But I know that readline my version of ruby does not have readline support,
because …
I had ruby 1.6.2 which came with my mandrake 8.0. I just upgraded to
ruby
1.6.8 (compiled from source), and now in irb the “up” key doesn’t work
anymore, instead ^[[A is displayed on the screen…
Verify that ruby has build the extension readline
pigeon% ruby -rreadline -e 1
pigeon%
… when I do this I get an error :
ruby: No such file to load – readline (LoadError)
If it give an error, goto ruby-1.6.8/ext/readline and run
ruby extconf.rb
So will I have some other problems down the road?
This question is for those involved: is readline support on Win32 planed in
future ?
No, you just don't have access to this extension : this just mean that you
can't use cursor key with irb (just like with the old DOS) but irb still
work fine.
So there are some programs I won't be able to run. Right?
Well, readline is just to have access to up-down-left-right arrow keys :
if these keys work in irb without this extension this just mean that on
Windows you don't need it and you'll able to run any programs.
Well, readline is just to have access to up-down-left-right arrow keys :
if these keys work in irb without this extension this just mean that on
Windows you don’t need it and you’ll able to run any programs.