|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.term.BaseTerm
public class BaseTerm
| Constructor Summary | |
|---|---|
BaseTerm(TermIO io)
|
|
| Method Summary | |
|---|---|
void |
addToHistory(CharSequence line)
Append a line to the term history. |
void |
bufferInsert(CharSequence msg)
Insert a message on the console just after the cursor. |
void |
close()
Close the term. |
CharSequence |
getBuffer()
Returns the current buffer; |
int |
getWidth()
Returns the term width in chars. |
TermEvent |
read()
Read the next term event. |
void |
setEcho(boolean echo)
Set the echo mode on the term. |
void |
write(CharSequence msg)
Write a message on the console, the text will be appended. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseTerm(TermIO io)
| Method Detail |
|---|
public int getWidth()
Term
getWidth in interface Termpublic void setEcho(boolean echo)
Term
setEcho in interface Termecho - the echo mode
public TermEvent read()
throws IOException
Term
read in interface TermIOException - any io exception
public void bufferInsert(CharSequence msg)
throws IOException
Term
bufferInsert in interface Termmsg - the message to insert
IOException - any io exceptionpublic void addToHistory(CharSequence line)
Term
addToHistory in interface Termline - the history line to appendpublic CharSequence getBuffer()
Term
getBuffer in interface Termpublic void close()
TermTerm.read() operation, those thread should be unblocked.
close in interface Term
public void write(CharSequence msg)
throws IOException
Term
write in interface Termmsg - the message to write
IOException - any io exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||