Getting up arrow to work in irb on OSX

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

Phil

you need to compile with readline. probably readline is not installed or was
not found when you installed. this should be in the config logs if you
look…

-a

···

On 26 Mar 2004, Phil Tomson wrote:

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
PHONE :: 303.497.6469
ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
URL :: Solar-Terrestrial Physics Data | NCEI
TRY :: for l in ruby perl;do $l -e “print "\x3a\x2d\x29\x0a"”;done
===============================================================================

Quoteing ptkwt@aracnet.com, on Fri, Mar 26, 2004 at 09:54:28AM +0900:

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

There’s a way you can do without recompiling (for 10.2, anyhow).

See:

http://www.rubygarden.org/ruby?RubyOnMacintosh

Look for “OS X Ruby with readline”.

Cheers,
Sam

ptkwt@aracnet.com (Phil Tomson) wrote in message news:c3vtc00cqf@enews4.newsguy.com

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

Phil

Ya needs readline. Rich Kilmer wrote a great step-by-step about how to do this:

http://richkilmer.blogs.com/ether/2003/10/building_ruby_1.html

sidenote: I’m a windows user (ok, blame me ) and I think that irb has
support for up-arrow even without readline (but no completion). It
sounds strange that on *nix this does not work :confused:

side side note: someone else notices that he can’t type ‘[’ and ‘]’ on
irb with readline ?
I’m using the binaries from http://jarp.jin.gr.jp/win32/

···

il Thu, 25 Mar 2004 20:02:22 -0700, “Ara.T.Howard” ahoward@fattire.ngdc.noaa.gov ha scritto::

On 26 Mar 2004, Phil Tomson wrote:

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

you need to compile with readline. probably readline is not installed or was
not found when you installed. this should be in the config logs if you
look…

In article pnq760lia7gr01nur2rin3dgcm4umsdk7h@4ax.com,

···

gabriele renzi surrender_it@remove.yahoo.it wrote:

il Thu, 25 Mar 2004 20:02:22 -0700, “Ara.T.Howard” >ahoward@fattire.ngdc.noaa.gov ha scritto::

On 26 Mar 2004, Phil Tomson wrote:

How do you get the up arrow to give prior commands in irb on OSX?

When I try to use the up arrow I just get garbage characters…

you need to compile with readline. probably readline is not installed or was
not found when you installed. this should be in the config logs if you
look…

sidenote: I’m a windows user (ok, blame me ) and I think that irb has
support for up-arrow even without readline (but no completion). It
sounds strange that on *nix this does not work :confused:

Generally it does work. On my Linux box it works fine.

It might well work with the Ruby 1.6.8 that comes out of the box with
Panther, but I’ve gotten 1.8.1 from DarwinPorts.

Phil