Interface TerminalPrompts
public interface TerminalPrompts
Receives a script's prompt lines from a
TerminalProcess started with a prompt channel.
Both methods are called on the process's prompt reader thread, never concurrently. The answers go back through
TerminalProcess.answer(String).
-
Method Summary
-
Method Details
-
onLine
One prompt-protocol JSON line from the script, without its newline.- Parameters:
jsonLine- The line.
-
onEnd
void onEnd()The runner's output ended (the job finished or the process was closed). Called once.
-