|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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) static int |
CLOSED . |
(package private) static int |
CLOSING . |
(package private) ConsoleDriver |
driver . |
(package private) Editor |
editor . |
(package private) AtomicReference<Plugin> |
handler The current handler. |
private static Logger |
log The logger. |
(package private) static int |
RUNNING . |
(package private) Shell |
shell . |
(package private) int |
status . |
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(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 |
---|
private static final Logger log
static final int RUNNING
static final int CLOSING
static final int CLOSED
final Shell shell
final AtomicReference<Plugin> handler
final BlockingDeque<KeyStroke> buffer
final ConsoleDriver driver
final Editor editor
int status
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(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 |