Irb on Mac OS X not displaying previous lines

I just started using irb on my Mac. When I press the Up arrow I should
see the previously entered line, right? Instead it writes “^[[A” to the
prompt. I’ve tried Terminal.app, iTerm, and xterm within X11, all do the
same thing. Any ideas?

Thanks,

Tom

On Jul 23, 2006, at 5:17 PM, Tom R. wrote:

I just started using irb on my Mac. When I press the Up arrow I should
see the previously entered line, right? Instead it writes “^[[A” to
the
prompt. I’ve tried Terminal.app, iTerm, and xterm within X11, all
do the
same thing. Any ideas?

i believe you need to install readline

– Elliot T.

On Jul 23, 2006, at 8:17 PM, Tom R. wrote:

I just started using irb on my Mac. When I press the Up arrow I should
see the previously entered line, right? Instead it writes “^[[A” to
the
prompt. I’ve tried Terminal.app, iTerm, and xterm within X11, all
do the
same thing. Any ideas?

Works for me in Terminal.

Mac OS X 10.4.7
Ruby 1.8.4 via DarwinPorts (http://darwinports.opendarwin.org/)

Craig

Craig D. wrote:

On Jul 23, 2006, at 8:24 PM, Elliot T. wrote:

i believe you need to install readline

Ruby 1.8.4 from DarwinPorts depends on readline, so it’s installed
for me. Recently, I found that the readline version from DarwinPorts
was updated. I installed it and broke Ruby stuff. I simply
deactivated the new one (5.1.x) and reactivated the old one (5.0.x).

Craig

Ok, I installed readline from Darwin Ports, but as you said its version
5.1. Is it possible to downgrade to an older version with Darwin Ports?

I tried building 5.0.5 from source
(http://cnswww.cns.cwru.edu/~chet/readline/rltop.html) but it failed.

On Jul 23, 2006, at 5:17 PM, Tom R. wrote:

I just started using irb on my Mac. When I press the Up arrow I should
see the previously entered line, right? Instead it writes “^[[A” to
the
prompt. I’ve tried Terminal.app, iTerm, and xterm within X11, all
do the
same thing. Any ideas?

You need not do anything but build your own ruby and move the stock
ruby aside (eg sudo mv /usr/bin/ruby /usr/bin/ruby182). OSX ships
with libedit and it works fine with no extra configuration options.

Ryan D. wrote:

On Jul 23, 2006, at 5:17 PM, Tom R. wrote:

I just started using irb on my Mac. When I press the Up arrow I should
see the previously entered line, right? Instead it writes “^[[A” to
the
prompt. I’ve tried Terminal.app, iTerm, and xterm within X11, all
do the
same thing. Any ideas?

You need not do anything but build your own ruby and move the stock
ruby aside (eg sudo mv /usr/bin/ruby /usr/bin/ruby182). OSX ships
with libedit and it works fine with no extra configuration options.

Yup, that did I. I installed from Darwin Ports.

Thanks.

On Jul 23, 2006, at 8:24 PM, Elliot T. wrote:

i believe you need to install readline

Ruby 1.8.4 from DarwinPorts depends on readline, so it’s installed
for me. Recently, I found that the readline version from DarwinPorts
was updated. I installed it and broke Ruby stuff. I simply
deactivated the new one (5.1.x) and reactivated the old one (5.0.x).

Craig

On Jul 24, 2006, at 8:08 PM, Tom R. wrote:

Ryan D. wrote:

You need not do anything but build your own ruby and move the stock
ruby aside (eg sudo mv /usr/bin/ruby /usr/bin/ruby182). OSX ships
with libedit and it works fine with no extra configuration options.

Yup, that did I. I installed from Darwin Ports.

Not quite the same, but I suppose it works too.

On 7/24/06, Craig D. [email protected] wrote:

do the
same thing. Any ideas?

i believe you need to install readline

Ruby 1.8.4 from DarwinPorts depends on readline, so it’s installed
for me. Recently, I found that the readline version from DarwinPorts
was updated. I installed it and broke Ruby stuff. I simply
deactivated the new one (5.1.x) and reactivated the old one (5.0.x).

It also works for me with ruby from Fink :slight_smile:

Thanks

Michal

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs