From: Sam Roberts Date: 2003-03-18T00:42:58+09:00 Subject: Re: How do I get irb to use readline, (with OS X)? Sorry for being vague. What I want is simpler that that - I want to be able to use the arrow keys (or even ^p) to go back through the history, and to move back through a line and edit it! I can't use any line editing keys right now, its getting irritating! Completion, I think, allows TAB to complete the names of methods, correct? [ensemble] ~/p/ruby/vcard $ irb -r irb/completion /usr/lib/ruby/1.6/irb/completion.rb:10:in `require': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.6/irb/completion.rb:10 from /usr/lib/ruby/1.6/irb/init.rb:197:in `require' from /usr/lib/ruby/1.6/irb/init.rb:197:in `load_modules' from /usr/lib/ruby/1.6/irb/init.rb:195:in `each' from /usr/lib/ruby/1.6/irb/init.rb:195:in `load_modules' from /usr/lib/ruby/1.6/irb.rb:52:in `start' from /usr/bin/irb:13 ext/readline is supposed to be part of ruby, isn't it? I also can't see a /usr/lib/libreadline*, so I really think I'm missing something! Cheers, Sam Quoteing jim@freeze.org, on Mon, Mar 17, 2003 at 10:21:45PM +0900: > On Monday, 17 March 2003 at 5:38:45 +0900, Sam Roberts wrote: > > I'm sure I saw something about this somewhere, but I've been searching, > > and haven't found it again. > > > > Has anybody done this? Will I have to recompile ruby? > > > > Are you talking about completion, which uses readline? > > alias irb 'irb -r irb/completion' > > > -- > Jim Freeze > ---------- > The camel has a single hump; > The dromedary two; > Or else the other way around. > I'm never sure. Are you? > -- Ogden Nash >