|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.processor.jline.JLineProcessor
public class JLineProcessor
Field Summary | |
---|---|
(package private) AtomicReference<ShellProcess> |
current
. |
(package private) jline.console.ConsoleReader |
reader
. |
private Shell |
shell
. |
(package private) boolean |
useAlternate
Whether or not we switched on the alternate screen. |
(package private) PrintWriter |
writer
. |
Constructor Summary | |
---|---|
JLineProcessor(Shell shell,
jline.console.ConsoleReader reader,
PrintWriter writer)
|
Method Summary | |
---|---|
void |
cancel()
|
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates)
|
(package private) String |
getPrompt()
|
private void |
loop()
|
private String |
readLine()
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Shell shell
final jline.console.ConsoleReader reader
final PrintWriter writer
final AtomicReference<ShellProcess> current
boolean useAlternate
Constructor Detail |
---|
public JLineProcessor(Shell shell, jline.console.ConsoleReader reader, PrintWriter writer)
Method Detail |
---|
public void run()
run
in interface Runnable
private String readLine()
private void loop()
public int complete(String buffer, int cursor, List<CharSequence> candidates)
complete
in interface jline.console.completer.Completer
public void cancel()
String getPrompt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |