org.python.util
Class JLineConsole
public class JLineConsole
This class uses
JLine to provide
readline like functionality to its console without requiring native readline
support.
cleanup, eval, exec, exec, execfile, execfile, execfile, get, get, getLocals, initialize, set, set, setErr, setErr, setErr, setLocals, setOut, setOut, setOut |
JLineConsole
public JLineConsole()
Create a new Interpreter with an empty dictionary
JLineConsole
public JLineConsole(PyObject locals)
Create a new interpreter with the given dictionary to use as its
namespace
JLineConsole
public JLineConsole(PyObject locals,
String filename)
raw_input
public String raw_input(PyObject prompt)
Write a prompt and read a line.
The returned line does not include the trailing newline. When the user
enters the EOF key sequence, EOFError is raised.
The base implementation uses the built-in function raw_input(); a
subclass may replace this with a different implementation.
- raw_input in interface InteractiveConsole
Jython homepage