The standard terminal commands has disappeared in irb

P

P. A.

Hi.

When I use the irb console the standard terminal key-commands such as
Ctrl+l to clear the screen, ↑ or ↓ to select the previous commands
doesn't work.

What is the reason of this issue? How can I fix it?

Debian GNU/Linux 5.0.3, Ruby 1.9.1, IRB 0.9.5.

Thanks.
 
B

Bertram Scharpf

Hi,

Am Montag, 14. Sep 2009, 21:12:54 +0900 schrieb P. A.:
When I use the irb console the standard terminal key-commands such as
Ctrl+l to clear the screen, =E2=86=91 or =E2=86=93 to select the previous= commands
doesn't work.
=20
What is the reason of this issue? How can I fix it?
=20
Debian GNU/Linux 5.0.3, Ruby 1.9.1, IRB 0.9.5.

`readline' installed and working?

$ dpkg -l | grep readline

or

irb(main):001:0> require "readline"

Bertram


--=20
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
 
P

P. A.

I have the development package for Readline called libreadline-dev on my
system. I haven't got the Readline Ruby library (no such file to load --
readline (LoadError)). Should I recompile the Ruby with the Readline
extension included? Will irb work then?
 
J

Joel VanderWerf

P. A. said:
I have the development package for Readline called libreadline-dev on my
system. I haven't got the Readline Ruby library (no such file to load --
readline (LoadError)). Should I recompile the Ruby with the Readline
extension included? Will irb work then?

Yes, but you don't need to rebuild all of ruby. Just go into
ext/readline and run

ruby extconf.rb
make
make install #(as root if needed)

(and you may want to check out the recent thread about .irbrc files for
some neat tricks)
 
P

P. A.

I've just finished installation the Readline extension using your
instructions. The realine.so library was installed in
<install_dir>/ruby-1.9.1/lib/ruby/site_ruby/1.9.1/i686-linux. I can
require it in simple ruby programs or from `ruby -e "require 'readline'
#=> true"`. Also I can use all the standard command line shortcuts in
the irb console as I wanted. But when I require 'readline' in irb itself
for some reason it returns the false value. Why?

I didn't hear anything about the .irbc files thread. Could you give me
the link, please.
 
G

Glen Holcomb

I've just finished installation the Readline extension using your
instructions. The realine.so library was installed in
<install_dir>/ruby-1.9.1/lib/ruby/site_ruby/1.9.1/i686-linux. I can
require it in simple ruby programs or from `ruby -e "require 'readline'
#=3D> true"`. Also I can use all the standard command line shortcuts in
the irb console as I wanted. But when I require 'readline' in irb itself
for some reason it returns the false value. Why?

I didn't hear anything about the .irbc files thread. Could you give me
the link, please.
false doesn't mean it failed it just means it wasn't loaded (in this case i=
t
wasn't loaded because it was already loaded when you started irb).

--=20
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can=92t hear a word you=92re saying."

-Greg Graffin (Bad Religion)
 

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

Similar Threads

Debug IRB session 2
no such file to load -- sqlite3 2
Simulating a TTY? 5
Strange bug in irb1.9 7
[ANN] langhelp-0.9.8 0
[ANN] langhelp-0.9.7 0
rrdtool gem 3
[ANN] langhelp-0.9.6 0

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top