Package org.python.util
Class JLineConsole
java.lang.Object
org.python.util.PythonInterpreter
org.python.util.InteractiveInterpreter
org.python.util.InteractiveConsole
org.python.util.JLineConsole
This class uses JLine to provide
readline like functionality to its console without requiring native readline
support.
-
Field Summary
Fields inherited from class org.python.util.InteractiveConsole
CONSOLE_FILENAME, filename
Fields inherited from class org.python.util.InteractiveInterpreter
buffer
-
Constructor Summary
ConstructorsConstructorDescriptionJLineConsole
(PyObject locals) JLineConsole
(PyObject locals, String filename) -
Method Summary
Methods inherited from class org.python.util.InteractiveConsole
getDefaultBanner, interact, interact, push
Methods inherited from class org.python.util.InteractiveInterpreter
interrupt, resetbuffer, runcode, runsource, runsource, runsource, showexception, write
-
Constructor Details
-
JLineConsole
public JLineConsole() -
JLineConsole
-
JLineConsole
-
-
Method Details
-
raw_input
Description copied from class:InteractiveConsole
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.- Overrides:
raw_input
in classInteractiveConsole
-