public interface TermIO
extends java.io.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.
|
java.lang.String |
getProperty(java.lang.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(java.lang.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 java.io.IOException
java.io.IOException - any io exceptionint getWidth()
int getHeight()
java.lang.String getProperty(java.lang.String name)
name - the name of the propertyboolean takeAlternateBuffer()
throws java.io.IOException
flush() method
is invoked.java.io.IOExceptionboolean releaseAlternateBuffer()
throws java.io.IOException
flush() method
is invoked.java.io.IOExceptionCodeType decode(int code)
code - the codevoid flush()
throws java.io.IOException
java.io.IOException - any io exceptionvoid write(java.lang.CharSequence s)
throws java.io.IOException
s - the string to writejava.io.IOException - any io exceptionvoid write(char c)
throws java.io.IOException
c - the char to writejava.io.IOException - any io exceptionvoid write(Style d) throws java.io.IOException
d - the data to writejava.io.IOException - any io exceptionvoid writeDel()
throws java.io.IOException
java.io.IOException - any io exceptionvoid writeCRLF()
throws java.io.IOException
java.io.IOException - any io exceptionvoid cls()
throws java.io.IOException
java.io.IOException - any io exceptionboolean moveRight(char c)
throws java.io.IOException
c - the char skipped overjava.io.IOException - any io exceptionboolean moveLeft()
throws java.io.IOException
java.io.IOException - any io exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.