|
Readline and multiline input: msg#00006lang.jython.user
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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Outputing dictionaries and lists as XML, Ged Byrne |
|---|---|
| Next by Date: | Re: Readline and multiline input, Tessa Lau |
| Previous by Thread: | Outputing dictionaries and lists as XML, Ged Byrne |
| Next by Thread: | Re: Readline and multiline input, Tessa Lau |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |