|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the element generic typepublic interface InteractionContext<E>
The interaction context extends the screen context and provides interaction with the client.
Method Summary | |
---|---|
String |
getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the shell client. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer. |
boolean |
takeAlternateBuffer()
Take control of the alternate buffer. |
Methods inherited from interface org.crsh.shell.ScreenContext |
---|
getHeight, getWidth |
Methods inherited from interface org.crsh.io.Consumer |
---|
getConsumedType, provide |
Methods inherited from interface java.io.Flushable |
---|
flush |
Method Detail |
---|
boolean takeAlternateBuffer() throws IOException
Flushable.flush()
method
is invoked.
IOException
boolean releaseAlternateBuffer() throws IOException
Flushable.flush()
method
is invoked.
IOException
String getProperty(String propertyName)
propertyName
- the property name
String readLine(String msg, boolean echo)
msg
- the message to display before reading a lineecho
- wether or not the line read should be echoed when typing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |