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

    Modifier and Type
    Method
    Description
    void
    The runner's output ended (the job finished or the process was closed).
    void
    onLine(String jsonLine)
    One prompt-protocol JSON line from the script, without its newline.
  • Method Details

    • onLine

      void onLine(String jsonLine)
      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.