I just found this:

http://java-readline.sourceforge.net/

Apparently Jython uses it for terminal control stuff..

- Charlie

On 2/9/06, Charles O Nutter <[EMAIL PROTECTED]> wrote:
> It's become increasingly irritating that there's nothing equivalent to
> IRB that works with JRuby on the command-line. I'm personally tired of
> having a stack of test*.rb files around or using cumbersome -e strings
> to try out every little thing I need to test while working on JRuby.
> Something better is needed.
>
> Could Ruby's IRB be modified to work correctly with JRuby? I know it
> currently doesn't work because we don't have the terminal reading and
> manipulating capabilities necessary in Java, but could those
> requirements be ripped out?
>
> Is there an alternative to IRB that would work in JRuby? I'm not
> looking for anything fancy; just a basic interactive environment that
> I can run easily from the command-line.
>
> Could we just start working on our own simpler "jirb" so there's
> something roughly equivalent to IRB in the JRuby standard distro?
> How's this for a completely naive approach (that doesn't support
> multi-line constructs, naturally):
>
> STDOUT << '> '
>
> while (x = STDIN.readline)
>   break if x =~ /^quit$/
>   begin
>     y = eval(x)
>     STDOUT << ' => '; p y
>   rescue Exception => e
>     puts e
>   end
>   STDOUT << '> '
> end
>
> --
> Charles Oliver Nutter @ headius.blogspot.com
> JRuby Developer @ jruby.sourceforge.net
> Application Architect @ www.ventera.com
>


--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to