public interface ConsoleCallback
| Modifier and Type | Method and Description |
|---|---|
int |
execute(ConsoleOperation output)
Will be executed when a return is pressed
|
CommandOperation |
getInput()
A blocking call that will return user input from the terminal
|
java.lang.String |
getInputLine()
A blocking call that will return user input from the terminal
after the user has pressed enter.
|
void |
setProcess(Process process)
Internally callback method
|
int execute(ConsoleOperation output) throws java.lang.InterruptedException
output - the consoleOperationjava.lang.InterruptedExceptionCommandOperation getInput() throws java.lang.InterruptedException
java.lang.InterruptedExceptionjava.lang.String getInputLine()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionvoid setProcess(Process process)
process - current process