[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

irb on Mac OS X not displaying previous lines

Tom Robinson

7/24/2006 12:18:00 AM

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

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

8 Answers

Elliot Temple

7/24/2006 12:24:00 AM

0


On Jul 23, 2006, at 5:17 PM, Tom Robinson 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 Temple
http://www.cur...




Craig Demyanovich

7/24/2006 12:28:00 AM

0

On Jul 23, 2006, at 8:17 PM, Tom Robinson 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.opend...)

Craig

Craig Demyanovich

7/24/2006 12:31:00 AM

0

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

>
> On Jul 23, 2006, at 5:17 PM, Tom Robinson 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

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

Tom Robinson

7/24/2006 1:20:00 AM

0

Craig Demyanovich wrote:
> On Jul 23, 2006, at 8:24 PM, Elliot Temple 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/...) but it failed.

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

Ryan Davis

7/24/2006 10:06:00 AM

0


On Jul 23, 2006, at 5:17 PM, Tom Robinson 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.



Tom Robinson

7/25/2006 3:09:00 AM

0

Ryan Davis wrote:
> On Jul 23, 2006, at 5:17 PM, Tom Robinson 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.

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

Michal Suchanek

7/25/2006 9:32:00 AM

0

On 7/24/06, Craig Demyanovich <demmer12@fastmail.us> wrote:
> On Jul 23, 2006, at 8:24 PM, Elliot Temple wrote:
>
> >
> > On Jul 23, 2006, at 5:17 PM, Tom Robinson 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
>
> 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 :)

Thanks

Michal

Ryan Davis

7/29/2006 8:42:00 AM

0


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

> Ryan Davis 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.