Message6207

Author neuroaudio
Recipients neuroaudio
Date 2010-10-25.22:30:04
SpamBayes Score 3.0935386e-08
Marked as misclassified No
Message-id <1288045805.87.0.865116688379.issue1669@psf.upfronthosting.co.za>
In-reply-to
Content
$ 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.
History
Date User Action Args
2010-10-25 22:30:06neuroaudiosetrecipients: + neuroaudio
2010-10-25 22:30:05neuroaudiosetmessageid: <1288045805.87.0.865116688379.issue1669@psf.upfronthosting.co.za>
2010-10-25 22:30:05neuroaudiolinkissue1669 messages
2010-10-25 22:30:04neuroaudiocreate