Building MacRuby with GNU readline support
I'm trying to get vi-editing mode support in macirb, but it looks this is not going to work without custom build of MacRuby with GNU readline? Is it possible to just build readline extension alone and place it in /Library/Frameworks/MacRuby.framework/Versions/Current/usr/lib/ruby/site_ruby/1.9.2/universal-darwin10.0/readline.bundle
Since Ruby uses readline vi the extension, that should definitely work. Keep in mind as you do, however, that macirb is actually DietRB, a lightweight IRB replacement written by Eloy. So, there may be some differences with IRB. Personally, I've never tried vi-editing mode in either, but if you have some success be sure to let us know! - Josh On Friday, December 23, 2011 at 9:03 AM, Mario Grgic wrote:
I'm trying to get vi-editing mode support in macirb, but it looks this is not going to work without custom build of MacRuby with GNU readline?
Is it possible to just build readline extension alone and place it in /Library/Frameworks/MacRuby.framework/Versions/Current/usr/lib/ruby/site_ruby/1.9.2/universal-darwin10.0/readline.bundle
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org (mailto:MacRuby-devel@lists.macosforge.org) http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
If you want to avoid building macruby with rl support could try rlwrap in conjunction with macirb (http://utopia.knoware.nl/~hlub/rlwrap/). You can install it through brew, for example. Afterwards, you simply run "rlwrap macirb" and the the console with full readline support. Hope that helps, Sven
participants (3)
-
Joshua Ballanco
-
Mario Grgic
-
sas