|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.console.Console
public class Console
A console state machine, which delegates the state machine to the Plugin implementation.
| Field Summary | |
|---|---|
(package private) BlockingDeque<KeyStroke> |
buffer
The buffer. |
(package private) ConsoleDriver |
driver
. |
(package private) Editor |
editor
. |
(package private) AtomicReference<Plugin> |
handler
The current handler. |
(package private) boolean |
running
. |
(package private) Shell |
shell
. |
| Constructor Summary | |
|---|---|
Console(Shell shell,
ConsoleDriver driver)
|
|
| Method Summary | |
|---|---|
void |
addModeListener(Runnable runnable)
|
(package private) void |
close()
|
(package private) Editor |
edit()
Switch to edit. |
Iterable<KeyStroke> |
getKeyBuffer()
|
Mode |
getMode()
|
void |
init()
Initiali |
boolean |
isRunning()
|
(package private) void |
iterate()
Process the state machine. |
void |
on(KeyStroke keyStroke)
|
void |
on(KeyStroke[] keyStrokes)
|
void |
on(jline.console.Operation operation,
int... buffer)
|
void |
setMode(Mode mode)
|
void |
toEmacs()
|
void |
toInsert()
|
void |
toMove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Shell shell
final AtomicReference<Plugin> handler
final BlockingDeque<KeyStroke> buffer
final ConsoleDriver driver
final Editor editor
boolean running
| Constructor Detail |
|---|
public Console(Shell shell,
ConsoleDriver driver)
throws NullPointerException
NullPointerException| Method Detail |
|---|
public void setMode(Mode mode)
public void toEmacs()
public void toMove()
public void toInsert()
public Mode getMode()
public void addModeListener(Runnable runnable)
public boolean isRunning()
public void init()
public Iterable<KeyStroke> getKeyBuffer()
public void on(jline.console.Operation operation,
int... buffer)
public void on(KeyStroke keyStroke)
public void on(KeyStroke[] keyStrokes)
void close()
Editor edit()
void iterate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||