logo       

Re: Q: No Doskey in Jython console?: msg#00052

lang.jython.user

Subject: Re: Q: No Doskey in Jython console?

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/jython-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@xxxxxxxxxx



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise