From: <pj...@us...> - 2009-05-16 05:15:49
|
Revision: 6353 http://jython.svn.sourceforge.net/jython/?rev=6353&view=rev Author: pjenvey Date: 2009-05-16 05:15:28 +0000 (Sat, 16 May 2009) Log Message: ----------- handle stty failures and don't hardcode UnixTerminal when they happen thanks Weiqi Gao Modified Paths: -------------- trunk/jython/src/shell/jython Modified: trunk/jython/src/shell/jython =================================================================== --- trunk/jython/src/shell/jython 2009-05-16 01:58:51 UTC (rev 6352) +++ trunk/jython/src/shell/jython 2009-05-16 05:15:28 UTC (rev 6353) @@ -228,8 +228,10 @@ fi # fix JLine to use UnixTerminal - stty -icanon min 1 -echo - JAVA_OPTS="$JAVA_OPTS -Djline.terminal=jline.UnixTerminal" + stty -icanon min 1 -echo > /dev/null 2>&1 + if [ $? = 0 ]; then + JAVA_OPTS="$JAVA_OPTS -Djline.terminal=jline.UnixTerminal" + fi fi if [ -n "$profile_requested" -o -z "$boot_requested" ] ; then @@ -269,7 +271,7 @@ fi if $cygwin; then - stty icanon echo + stty icanon echo > /dev/null 2>&1 fi exit $JYTHON_STATUS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |