I have a Jython script that calls into some Java classes. One of these classes asks the user for a username and password using the java.lang.System.console().readLine() and .readPassword() API's. When this class is used in a Java environment without Jython, those API's work correctly. In my Jython environment, these API's only read a single character. I can duplicate this behavior in the interactive console like this:
>>> from java.lang import System
>>> username = System.console().readLine("Username: ")
Username: >>>
>>> username
u'j'
>>> password = System.console().readPassword("Password: ")
Password: >>>
>>> password
array('c', 'p')