| From | Sent On | Attachments |
|---|---|---|
| Moss Prescott | May 13, 2009 11:40 am | |
| Weiqi Gao | May 13, 2009 12:55 pm | |
| Weiqi Gao | May 13, 2009 1:53 pm | |
| Moss Prescott | May 13, 2009 4:40 pm | |
| Nicholas Riley | May 15, 2009 12:09 pm | |
| Weiqi Gao | May 15, 2009 1:02 pm | |
| Nicholas Riley | May 15, 2009 1:32 pm | |
| Philip Jenvey | May 15, 2009 6:57 pm | |
| Weiqi Gao | May 15, 2009 8:08 pm | |
| Philip Jenvey | May 15, 2009 10:15 pm |
| Subject: | [Jython-users] 2.5rc2, cygwin, and JLine | |
|---|---|---|
| From: | Moss Prescott (mo...@termalabs.com) | |
| Date: | May 13, 2009 11:40:22 am | |
| List: | net.sourceforge.lists.jython-users | |
I'm using 2.5rc2 on Windows with bash under cygwin and having some problems. I think part of the problem might be that I'm using the jython.bat script (as opposed to jython.sh, jython, or whatever it is that you get on Unix), which is the only one the installer seems to create. If I use a regular Windows terminal with the horrible CMD shell, then neither of these problems occurs.
First, running just "jython.bat" doesn't give me a prompt, although Jython does seem to be in interactive mode, or maybe it's just taking the script from stdin? Passing "-i" seems to fix it, so I assume it's just not recognizing the terminal. This behavior was present in the betas. Oddly, if I do "jython --print", it looks like the command-line is identical whichever way I run it, so I'm not sure what's tripping it up.
Second, it seems to be trapping ^C and ^Z in a strange way, and generally getting confused about input. It seems to echo what I type, but sometime it doesn't actually capture all the characters, because it will give random syntax errors referring to garbled input. Worse, it will sometimes seem to exit, so that I get a bash prompt, but then somehow keypresses are still going to Jython. Or it will just hang and nothing I type will get either Jython or bash to respond. All of this is new since beta3, so I suspect it's related to JLine.
If I run the jar directly, like this: "java -cp jython2.5rc2/jython.jar org.python.util.jython", then I still have most of the same problems.
Does anyone have any suggestions? Anyone else using Jython with cygwin?
Thanks, -moss
-- Moss Prescott
------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________ Jython-users mailing list Jyth...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users





