public interface Term extends Closeable, ScreenContext
Modifier and Type | Method and Description |
---|---|
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.
|
flush, getHeight, getWidth
append, cls
append, append, append
String getProperty(String name)
name
- name of the term propertyboolean takeAlternateBuffer() throws IOException
ScreenContext.flush()
method
is invoked.IOException
boolean releaseAlternateBuffer() throws IOException
ScreenContext.flush()
method
is invoked.IOException
void setEcho(boolean echo)
echo
- the echo modeTermEvent read() throws IOException
IOException
- any io exceptionAppendable getDirectBuffer()
CharSequence getBuffer()
void addToHistory(CharSequence line)
line
- the history line to appendCopyright © 2015 eXo Platform SAS. All Rights Reserved.