|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.term.console.Console
public final class Console
This class provides an abstraction for a console. This implementation wraps the input and output of a terminal based on a bidirectional io.
Interactions between terminal and console are done though the ViewReader
and ViewWriter
classes.
Constructor Summary | |
---|---|
Console(ViewWriter viewWriter)
|
Method Summary | |
---|---|
void |
clearBuffer()
Clears the buffer without doing any echoing. |
CharSequence |
getBuffer()
|
CharSequence |
getBufferToCursor()
|
ConsoleReader |
getReader()
Returns the console reader. |
ViewReader |
getViewReader()
|
ConsoleWriter |
getWriter()
|
boolean |
isEchoing()
|
void |
setEchoing(boolean echoing)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Console(ViewWriter viewWriter)
Method Detail |
---|
public void clearBuffer()
public CharSequence getBuffer()
public CharSequence getBufferToCursor()
public boolean isEchoing()
public void setEchoing(boolean echoing)
public ConsoleReader getReader()
public ViewReader getViewReader()
public ConsoleWriter getWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |