Title: NumberFormatException in terminal on OSX 10.12.5 (ncurses related)
Type: behaviour Severity: normal
Components: Versions: Jython 2.7
Milestone: Jython 2.7.2
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: stefan.richthofer Nosy List: stefan.richthofer, zyasoft
Priority: normal Keywords:

Created on 2017-07-02.15:39:45 by stefan.richthofer, last changed 2017-09-05.20:53:19 by zyasoft.

msg11457 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-07-02.15:39:44
I was pointed to this issue in JyNI context, but it seems to be JyNI-unrelated.
On OSX macOS Sierra 10.12.5 / Oracle Java 1.8.0_131 / Jython 2.7.1 RC2/RC3/Final, using the terminal:

[ERROR] Failed to construct terminal; falling back to unsupported
java.lang.NumberFormatException: For input string: "0x100"
at java.lang.NumberFormatException.forInputString(
at java.lang.Integer.parseInt(
at java.lang.Integer.valueOf(
at org.python.jline.internal.InfoCmp.parseInfoCmp(
at org.python.jline.UnixTerminal.parseInfoCmp(
at org.python.jline.UnixTerminal.<init>(
at org.python.jline.UnixTerminal.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance(
at org.python.jline.TerminalFactory.getFlavor(
at org.python.jline.TerminalFactory.create(
at org.python.jline.TerminalFactory.get(
at org.python.jline.TerminalFactory.get(
at org.python.jline.console.ConsoleReader.<init>(
at org.python.util.JLineConsole.install(
at org.python.core.Py.installConsole(
at org.python.core.PySystemState.initConsole(
at org.python.core.PySystemState.doInitialize(
at org.python.core.PySystemState.initialize(
at org.python.core.PySystemState.initialize(
at org.python.core.PySystemState.initialize(
at org.python.util.jython.main(

(Not showing up in xcode IDE.)

The issue is known in different context:

A suggested workaround is to set the environment variable TERM to a dfifferent value than "xterm-256color".
(Apparrently, newer ncurses displays 256 as 0x100 for better readability.)

This is said to be fixed in recent JLine2. So maybe another update of JLine2 can solve this issue in Jython.
msg11466 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-07-05.15:02:33
Fixed as of
Date User Action Args
2017-09-05 20:53:19zyasoftsetstatus: pending -> closed
2017-07-05 15:02:34stefan.richthofersetstatus: open -> pending
assignee: stefan.richthofer
resolution: fixed
messages: + msg11466
versions: + Jython 2.7
2017-07-02 15:39:45stefan.richthofercreate