|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConsoleDriver
The contract between the console and the underlying stream.
Method Summary | |
---|---|
void |
cls() Clear screen. |
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. |
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(CharSequence s, int start, int end) 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 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
void flush() throws IOException
IOException
- any io exceptionvoid write(CharSequence s) throws IOException
s
- the string to writeIOException
- any io exceptionvoid write(CharSequence s, int start, int end) throws IOException
s
- the string to writestart
- the index of the first charend
- the index of the last charIOException
- 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 exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |