|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Term
| Method Summary | |
|---|---|
void |
addToHistory(CharSequence line)
Append a line to the term history. |
CharSequence |
getBuffer()
Returns the current buffer content to the cursor; |
Appendable |
getDirectBuffer()
Returns the direct 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 |
TermEvent |
read()
Read the next term event. |
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer. |
void |
setEcho(boolean echo)
Set the echo mode on the term. |
boolean |
takeAlternateBuffer()
Take control of the alternate buffer. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Methods inherited from interface org.crsh.shell.ScreenContext |
|---|
getHeight, getWidth |
| Methods inherited from interface org.crsh.io.Consumer |
|---|
getConsumedType, provide |
| Methods inherited from interface java.io.Flushable |
|---|
flush |
| Method Detail |
|---|
String getProperty(String name)
name - name of the term property
boolean takeAlternateBuffer()
throws IOException
Flushable.flush() method
is invoked.
IOException
boolean releaseAlternateBuffer()
throws IOException
Flushable.flush() method
is invoked.
IOExceptionvoid setEcho(boolean echo)
echo - the echo mode
TermEvent read()
throws IOException
IOException - any io exceptionAppendable getDirectBuffer()
CharSequence getBuffer()
void addToHistory(CharSequence line)
line - the history line to append
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||