IRB is dying on me

P

Peter Bailey

Why is it that I can't repeat lines and edit them in IRB? If I press my
cursor up key, normally, that repeats the line I just entered. Then, I
can backspace and modify any part of that line I want before executing
it. But, it's dying on me. After I backspace a few characters, the
cursor goes nuts, and, I've lost my instruction string. Has anyone else
seen this behavior?

Thanks,
Peter
 
G

Greg Donald

Why is it that I can't repeat lines and edit them in IRB? If I press my
cursor up key, normally, that repeats the line I just entered. Then, I
can backspace and modify any part of that line I want before executing
it. But, it's dying on me. After I backspace a few characters, the
cursor goes nuts, and, I've lost my instruction string. Has anyone else
seen this behavior?

Sounds like your missing readline support.
 
G

Greg Donald

Sorry, but, I don't know what that is. Is that a gem I need to install?

Readline is the library that makes your irb behave more like a modern
shell. I added readline support to my Ruby when I compiled it.

--with-readline-dir=/usr/local
 
P

Peter Bailey

Greg said:
Readline is the library that makes your irb behave more like a modern
shell. I added readline support to my Ruby when I compiled it.

--with-readline-dir=/usr/local

OK. Well, I'm on Windows and I didn't compile anything. Ruby's been
"out-of-the-box" for me for almost a year now and it's worked
beautifully. I'll look into it further. Thanks.
 
P

Peter Bailey

Peter said:
OK. Well, I'm on Windows and I didn't compile anything. Ruby's been
"out-of-the-box" for me for almost a year now and it's worked
beautifully. I'll look into it further. Thanks.

Well, I tried everything including uninstalling and re-installing Ruby.
But, it still isn't working. This is very weird.
 
J

John Joyce

Well, I tried everything including uninstalling and re-installing
Ruby.
But, it still isn't working. This is very weird.
Ask yourself if you've installed anything recently (since you last
remember it working) ...
Something could've clobbered something.
Is your keyboard working in every app?
Is it CygWin or something?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top