|
||||||||||
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 |
close()
Close the term. |
CharSequence |
getBuffer()
Returns the current buffer; |
Appendable |
getInsertBuffer()
Returns the insert buffer, any char appended in the returned appendable will translate into an insertion in the buffer. |
String |
getProperty(String name)
Retrieves the value of a property specified by this Term |
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()
String getProperty(String name)
name
- name of the term property
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 exceptionAppendable getInsertBuffer()
CharSequence getBuffer()
void addToHistory(CharSequence line)
line
- the history line to appendvoid close()
read()
operation, those thread should be unblocked.
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |