public interface InteractionContext extends ScreenContext
| Modifier and Type | Method and Description |
|---|---|
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, this method call can be blocking until the user provides
a value.
|
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer.
|
boolean |
takeAlternateBuffer()
Take control of the alternate buffer.
|
flush, getHeight, getWidthappend, clsappend, append, appendboolean takeAlternateBuffer() throws IOException
ScreenContext.flush() method
is invoked.IOExceptionboolean releaseAlternateBuffer() throws IOException
ScreenContext.flush() method
is invoked.IOExceptionString getProperty(String propertyName)
propertyName - the property nameString readLine(String msg, boolean echo) throws IOException, InterruptedException, IllegalStateException
msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typingIOException - any io exceptionInterruptedException - the thread was interrupted while waiting for the user valueIllegalStateException - if reading a line is not at the appropriate timeCopyright © 2015 eXo Platform SAS. All Rights Reserved.