Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2010 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/749427 to your computer and use it in GitHub Desktop.
Save anonymous/749427 to your computer and use it in GitHub Desktop.
require 'jruby'
require 'readline'
if RUBY_VERSION < "1.9"
class << Readline
ReadlineExt = org.jruby.ext.Readline
def line_buffer
ReadlineExt.s_get_line_buffer(JRuby.runtime.current_context, JRuby.reference(self))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment