On May 14, 2009, at 5:00 PM, Philip Jenvey wrote:
>
> On May 14, 2009, at 10:23 AM, Nicholas Riley wrote:
>
>> In article <
4A0B1C23.2050909@...>,
>> Weiqi Gao <
weiqigao@...> wrote:
>>
>>> While we are talking about the repl, I noticed that when running
>>> jython
>>> under Cygwin, the prompts are not showing up. It seems that both
>>> sys.ps1 and sys.ps2 are empty strings.
>>
>> That happens because Jython thinks you're not running it
>> interactively (isatty). CPython should do the same thing,
>> essentially.
>> Unfortunately this check is quite a bit less reliable on Windows
>> than it
>> is on Unix... if you can think of a better solution, file a bug.
>>
>
> Nick, any idea why isatty fails here? Incorporating Weiqi's changes is
> no problem, but having to workaround isatty failing with
> JYTHON_OPTS="-
> i" sucks.
Actually if the std streams were not isatty(), I don't think JLine
should have even loaded.
Weiqi, what's the output of this on your cygwin environment?:
import sys
for f in sys.stdin, sys.stdout, sys.stderr:
print f.isatty()
--
Philip Jenvey
------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/businessobjects_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users