Message6207
$ uname -a
CYGWIN_NT-5.1 Rex 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
In a regular cygwin shell, everything works fine. However, if one starts X windows and runs an xterm (very popular for X-style cut/paste, etc.), it was possible with earlier 2.5 betas to trick jython into working by adding the option "-Djline.terminal=jline.UnixTerminal" and running "stty -icanon min 1 -echo" beforehand. A hack, but it got the job done. Now, even this hack does not work. Interactive sessions have no readline support and look like:
print "hi"
hi
instead of:
Jython 2.5.2rc2 (Release_2_5_2rc2:7167, Oct 24 2010, 22:48:30)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hi"
hi
>>>
A few clues I noticed in the cygwin xterm:
1) sys._jy_interpreter is InteractiveConsole instead of JLineConsole
2) sys.stdin.isatty() is False. This should be true, and it seems to determine which console object is used. |
|
Date |
User |
Action |
Args |
2010-10-25 22:30:06 | neuroaudio | set | recipients:
+ neuroaudio |
2010-10-25 22:30:05 | neuroaudio | set | messageid: <1288045805.87.0.865116688379.issue1669@psf.upfronthosting.co.za> |
2010-10-25 22:30:05 | neuroaudio | link | issue1669 messages |
2010-10-25 22:30:04 | neuroaudio | create | |
|