|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Terminal
Representation of the input terminal for a platform.
Method Summary | |
---|---|
int |
getHeight()
|
int |
getWidth()
|
boolean |
hasWeirdWrap()
For terminals that don't wrap when character is written in last column, only when the next character is written. |
void |
init()
|
boolean |
isAnsiSupported()
|
boolean |
isEchoEnabled()
|
boolean |
isSupported()
|
void |
reset()
|
void |
restore()
|
void |
setEchoEnabled(boolean enabled)
|
InputStream |
wrapInIfNeeded(InputStream in)
When using native support, return the InputStream to use for reading characters else return the input stream passed as a parameter. |
OutputStream |
wrapOutIfNeeded(OutputStream out)
When ANSI is not natively handled, the output will have to be wrapped. |
Method Detail |
---|
void init() throws Exception
Exception
void restore() throws Exception
Exception
void reset() throws Exception
Exception
boolean isSupported()
int getWidth()
int getHeight()
boolean isAnsiSupported()
OutputStream wrapOutIfNeeded(OutputStream out)
InputStream wrapInIfNeeded(InputStream in) throws IOException
IOException
boolean hasWeirdWrap()
boolean isEchoEnabled()
void setEchoEnabled(boolean enabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |