I have now tried some of this myself on Cygwin. When I try this it doesn't actually hang, but it decides (jnr-posix decides) that the terminal is not interactive. You therefore get no sign-on or prompt. There is also no local echo at the terminal. But if I type 6*7, blindly, it answers 42.

As it is not interactive, it chooses a PlainConsole, which means just use Java i/o. No options exist to force Jython to believe it is interactive. If I launch Jython directly as a java command line, I can get it to echo by placing stty echo in front.

$ stty echo; java -cp build\\exposed\;build\\classes\;extlibs\\* -Dpython.home=dist org.python.util.jython
6*7
42
exit()

I'm not sure this command is fully functional, and it's in the development environment, not running the JAR, so you won't be able to copy it directly. What *I* see is already reported as http://bugs.jython.org/issue1669. If that's what you see, then it may help that I've bumped it with a new comment.

Jeff
Jeff Allen
On 08/08/2014 18:29, PencilBoy99 wrote:
Sorry. I tried hacking the jython script with different -DConsole settings in the command like (jline, readline). they all hung.


-- gary furash | [hidden email], 520-907-2470 | calendar



On Fri, Aug 8, 2014 at 9:07 AM, PencilBoy99 [via Python] <[hidden email]> wrote:
Jeff Allen-2 wrote
A quick search suggests some difficulty exists between JLine and Cygwin,
and also some work-arounds. If that doesn't work for you, you may have
to make do with the PlainConsole
(https://wiki.python.org/jython/ConsoleChoices).
Left to itself, I expect JLine will choose a jline.WindowsTerminal. Does
that not work?
Thanks Jeff, but I don't know what I should do. Is there a way of telling jython from cygwin to do something different with JLine?



If you reply to this email, your message will be added to the discussion below:
http://python.6.x6.nabble.com/Jython-Hangs-with-Cygwin-tp1778354p5067209.html
To unsubscribe from Jython Hangs with Cygwin, click here.
NAML



View this message in context: Re: Jython Hangs with Cygwin
Sent from the jython-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds


_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users