|
||||||||||
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 modeTermEvent read() throws IOException
IOException
- any io exceptionvoid write(CharSequence msg) throws IOException
msg
- the message to write
IOException
- any io exceptionvoid 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 |