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
-
public class JLineConsole extends InteractiveConsole
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
Constructors Constructor Description JLineConsole()
JLineConsole(PyObject locals)
JLineConsole(PyObject locals, java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
raw_input(PyObject prompt)
Write a prompt and read a line.-
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
-
-
-
-
Method Detail
-
raw_input
public java.lang.String raw_input(PyObject prompt)
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
-
-