|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Term
An high level term abstraction.
| 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. |
| Method Detail |
|---|
int getWidth()
void setEcho(boolean echo)
echo - the echo mode
TermEvent read()
throws IOException
IOException - any io exception
void write(CharSequence msg)
throws IOException
msg - the message to write
IOException - any io exception
void bufferInsert(CharSequence msg)
throws IOException
msg - the message to insert
IOException - any io exceptionCharSequence getBuffer()
void addToHistory(CharSequence line)
line - the history line to appendvoid close()
read() operation, those thread should be unblocked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||