ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Jython-users
Jython-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved