From: Graham Nicholls Date: 2005-04-28T23:59:36+09:00 Subject: Re: irb command-line editing Graham Nicholls wrote: > gabriele renzi wrote: > >> Graham Nicholls ha scritto: >>> Hi. Can anyone tell me how to get vi-style command-line editing in irb, >>> please. >>> Thanks >> >> I guess you can set up your own inputrc file, since IRB is based on >> readline, and set "editing-mode" to "vi", I never trtied it, though. > I have a .inputrc with precisely that. ESC-k simply echoes. > > I've tried rebuilding from source with: > > ./configure --with-readline=YES ; make ; make install > > ,but to no avail. > > Is this the right redline option? DO I start irb with a parameter? > > Thanks PS Sorry to followup on y own post, but when I strace the irb binary, all the references to readline produce an ENOENT error. Readline is on the box, as I use it from bash (unless its built in?) Not sure if this is relevant. Heres part of the strace output: stat("./readline.rb", 0x7fffffffaad0) = -1 ENOENT (No such file or directory) stat("./readline.so", 0x7fffffffaad0) = -1 ENOENT (No such file or directory) Graham -- The answer's always "Yes". Now, what was the question? ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =---