public interface TermIO extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
cls()
Clear screen.
|
CodeType |
decode(int code)
Decode the intput value.
|
void |
flush()
Flush output.
|
int |
getHeight()
Returns the term height in chars.
|
String |
getProperty(String name)
Retrieves the value of a property specified by this TermIO
|
int |
getWidth()
Returns the term width in chars.
|
boolean |
moveLeft()
Move the cursor left.
|
boolean |
moveRight(char c)
Move the cursor right.
|
int |
read()
Reads an input value.
|
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer.
|
boolean |
takeAlternateBuffer()
Take control of the alternate buffer.
|
void |
write(char c)
Write a char.
|
void |
write(CharSequence s)
Write a string.
|
void |
write(Style d)
Write a style.
|
void |
writeCRLF()
Write a CRLF.
|
void |
writeDel()
Delete the char under the cursor.
|
int read() throws IOException
IOException
- any io exceptionint getWidth()
int getHeight()
String getProperty(String name)
name
- the name of the propertyboolean takeAlternateBuffer() throws IOException
flush()
method
is invoked.IOException
boolean releaseAlternateBuffer() throws IOException
flush()
method
is invoked.IOException
CodeType decode(int code)
code
- the codevoid flush() throws IOException
IOException
- any io exceptionvoid write(CharSequence s) throws IOException
s
- the string to writeIOException
- any io exceptionvoid write(char c) throws IOException
c
- the char to writeIOException
- any io exceptionvoid write(Style d) throws IOException
d
- the data to writeIOException
- any io exceptionvoid writeDel() throws IOException
IOException
- any io exceptionvoid writeCRLF() throws IOException
IOException
- any io exceptionvoid cls() throws IOException
IOException
- any io exceptionboolean moveRight(char c) throws IOException
c
- the char skipped overIOException
- any io exceptionboolean moveLeft() throws IOException
IOException
- any io exceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.