Hi all,
I enjoy using the java readline library to edit my command history.
However when I use the readline console instead of the builtin
console, I can no longer enter commands such as while loops that span
multiple lines.
For example:
Jython 2.1 on java1.4.1 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> (I press enter)
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: null
>>> for i in range(10):
... print i
... (I press enter)
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 3
null
^
SyntaxError: invalid syntax
Is it possible to get both readline and while loops working at
the interactive command prompt?
I'm using Jython 2.1 and libreadline-java 0.7.3, with Sun's JDK 1.4.1.
Thanks,
--Tessa
|