On Sep 26, 11:56 pm, Kris Zyp <[EMAIL PROTECTED]> wrote: > On Sep 26, 1:04 pm, Norris Boyd <[EMAIL PROTECTED]> wrote: > > > On Sep 26, 9:45 am, Kris Zyp <[EMAIL PROTECTED]> wrote: > > > > Does anybody know of a good REPL for Rhino? If not would that be a > > > worthwhile contribution to the Rhino project? > > > What about the Rhino shell? Does it not meet your needs? > > > --N > > I'm sorry, I didn't even realize that was there, I feel kind of > foolish, I should have looked more. However, is there any instructions > on how to use it from an application (with an existing JS environment/ > objects/context already setup)? I assume this is in > org.mozilla.javascript.tools.shell.Main, but I am not sure what I > would call to start the console from my code. > Kris
Yes, org.mozilla.javascript.tools.shell.Main is what people have used to embed Rhino shell in their apps. People call "public static int exec(String origArgs[])" to launch the shell. Also note that if you have JLine in your classpath you get smart line editing, see http://blog.norrisboyd.com/2008/03/better-line-editing-for-rhino-shell.html. --N _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
