|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TermIO
Method Summary | |
---|---|
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. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
int read() throws IOException
IOException
- any io exceptionint getWidth()
int getHeight()
String getProperty(String name)
name
- the name of the property
boolean takeAlternateBuffer() throws IOException
flush()
method
is invoked.
IOException
boolean releaseAlternateBuffer() throws IOException
flush()
method
is invoked.
IOException
CodeType decode(int code)
code
- the code
void flush() throws IOException
IOException
- any io exceptionvoid write(CharSequence s) throws IOException
s
- the string to write
IOException
- any io exceptionvoid write(char c) throws IOException
c
- the char to write
IOException
- any io exceptionvoid write(Style d) throws IOException
d
- the data to write
IOException
- 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 over
IOException
- any io exceptionboolean moveLeft() throws IOException
IOException
- any io exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |