public class Interactive extends Object implements Runnable, ShellConsole
CRLF
Constructor and Description |
---|
Interactive() |
Interactive(Shell shell,
InputStream in,
Writer out,
jline.Terminal term)
Used in GUI mode
|
Modifier and Type | Method and Description |
---|---|
void |
closeHistory() |
jline.ConsoleReader |
getConsole() |
static String |
getCurrentCmdLine() |
String |
getPrompt() |
Shell |
getShell() |
void |
loadHistory() |
void |
print(String msg) |
void |
println() |
void |
println(String msg) |
String |
readLine(String prompt,
Character mask) |
void |
removeHistory() |
static void |
reset() |
void |
run() |
static void |
setConsoleReaderFactory(ConsoleReaderFactory factory) |
static void |
setHandler(InteractiveShellHandler exitHandler) |
public Interactive() throws IOException
IOException
public Interactive(Shell shell, InputStream in, Writer out, jline.Terminal term) throws IOException
shell
- in
- out
- IOException
public static void setConsoleReaderFactory(ConsoleReaderFactory factory)
public static void setHandler(InteractiveShellHandler exitHandler)
public static void reset()
public static String getCurrentCmdLine()
public jline.ConsoleReader getConsole()
public Shell getShell()
public String getPrompt()
public void print(String msg)
print
in interface ShellConsole
public void println(String msg)
println
in interface ShellConsole
public void println()
println
in interface ShellConsole
public String readLine(String prompt, Character mask)
readLine
in interface ShellConsole
public void loadHistory() throws IOException
IOException
public void closeHistory()
public void removeHistory()
Copyright © 2013 Nuxeo SA. All Rights Reserved.