Message8489

Author zyasoft
Recipients JoshDavisNC, amak, fwierzbicki, zyasoft
Date 2014-05-21.22:13:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400710403.28.0.114887080424.issue1987@psf.upfronthosting.co.za>
In-reply-to
Content
This does not appear to be something resolvable by upgrading to JLine2 #2092, instead we are seeing dueling interaction between our user friendly console based on JLine and the usual System.console.

Under no circumstance would I want org.python.util.InteractiveConsole (which wraps System.console) to become the default ;) See below for why:

Instead, users with this sitation can simply use the workaround Frank linked:

$ jython27 -Dpython.console=org.python.util.InteractiveConsole
console: Failed to install 'org.python.util.InteractiveConsole': does not implement interface org.python.core.Console.
Jython 2.7b3+ (default:06161ebf74ee+, May 21 2014, 12:09:01)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_21
Type "help", "copyright", "credits" or "license" for more information.
>>> ^[[B^[[A^[[A^[[A^[[A^[[A^[[A
>>> # where's my history?!!!!
>>> from java.lang import System
>>> username = System.console().readLine("Username: ")
Username: foobar
>>> username
u'foobar'

It might be nice to remove that scary message however.
History
Date User Action Args
2014-05-21 22:13:23zyasoftsetmessageid: <1400710403.28.0.114887080424.issue1987@psf.upfronthosting.co.za>
2014-05-21 22:13:23zyasoftsetrecipients: + zyasoft, fwierzbicki, amak, JoshDavisNC
2014-05-21 22:13:23zyasoftlinkissue1987 messages
2014-05-21 22:13:22zyasoftcreate