atom feed10 messages in net.sourceforge.lists.jython-usersRe: [Jython-users] 2.5rc2, cygwin, an...
FromSent OnAttachments
Moss PrescottMay 13, 2009 11:40 am 
Weiqi GaoMay 13, 2009 12:55 pm 
Weiqi GaoMay 13, 2009 1:53 pm 
Moss PrescottMay 13, 2009 4:40 pm 
Nicholas RileyMay 15, 2009 12:09 pm 
Weiqi GaoMay 15, 2009 1:02 pm 
Nicholas RileyMay 15, 2009 1:32 pm 
Philip JenveyMay 15, 2009 6:57 pm 
Weiqi GaoMay 15, 2009 8:08 pm 
Philip JenveyMay 15, 2009 10:15 pm 
Subject:Re: [Jython-users] 2.5rc2, cygwin, and JLine
From:Philip Jenvey (
Date:May 15, 2009 6:57:05 pm

On May 15, 2009, at 1:32 PM, Nicholas Riley wrote:

In article <>, Weiqi Gao <> wrote:

Here's what works for Cygwin users:

1. Use a DOS prompt and forget about the headaches of Cygwin. 2. Use Cygwin bash in a DOS window: jython.bat works there. 3. Use Cygwin xterm/rxvt/etc. with the modified jython script for interactive session and jython.bat (or unmodified jython) for non-interactive usage.

The ultimate solution of this problem would require two things:

1. Fix JLine so that it works with Cygwin xterm/rxvt/etc. 2. Fix Jython so that it uses the correct JLine Terminal under Cygwin.

I was thinking #2 would make sense. I think it's reasonable to ship some analog to your shell script with the stty/JLine stuff conditionalized to cygwin, as I'd guess the interactive usage scenario is a lot more common.

I've committed a fix for #2. It's basically Weiqi's changes but mostly stolen from JRuby as our script derives from there's (and we try to keep the two in sync):

Weiqi and other cygwin users, could you download the new jython command line script and give it a shot?

You'll still need the jython -i workaround for the prompt/isatty issue. You can also make that happen via JYTHON_OPTS="-i"

------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment.