Re: [Jython-users] Q: No Doskey in Jython console?
by David Ripton other posts by this author
Feb 24 2003 9:46PM messages near this date
Re: [Jython-users] Q: No Doskey in Jython console?
|
[Jython-users] JBJython (Jython and JBuilder 5)
Johannes Eble wrote:
> ok, I found out from the FAQ that console shortcuts are not supported in
> Jython. Is there a way to achieve this?
Yes. But it requires compiling your own customized Jython.
The best docs for doing this are here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-readline/java-readline/contrib/jpython/j
ython-install.txt?rev=1.1
java-readline has three choices of back-end library: GNU Readline, BSD
Editline, and Getline.
Getline is the easiest to compile, has no license clashes with Jython, and
works fine for me. I highly recommend using Getline.
After you compile and install Jython with java-readline support, you'll
need to add a couple of lines to your Jython registry (see
http://www.jython.org/docs/registry.html):
python.console=org.python.util.ReadlineConsole
python.console.readlinelib=Getline
--
David Ripton dripton@[...].net
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
Thread:
Johannes Eble
David Ripton
|