public interface InteractiveChildProcess
Modifier and Type | Method and Description |
---|---|
void |
asynchCleanup(int pid)
Asynchronously cleanup any operating system resources when the interactive child process
has exited.
|
boolean |
inBatchMode()
Reports if the client is in batch mode.
|
boolean |
isArtificialTerm()
Reports if the client is missing an already initialized native terminal session.
|
int |
launch(java.lang.String[] cmdline,
boolean silent)
Launch the specified command line as an interactive child process.
|
int |
pauseForUser()
Wait for the user to press a key.
|
void |
resume()
Re-enables client UI processing (key reading, normal drawing mode).
|
void |
suspend()
Temporarily halts the client UI processing (key reading, normal drawing
mode) After entering suspend mode, the current contents of the
terminal are cleared.
|
void |
waitForExit(int pid,
boolean silent)
Block execution until the interactive child process has exited.
|
boolean inBatchMode()
true
if in batch mode.boolean isArtificialTerm()
true
if this is an artificial terminal (there is no native
terminal).int launch(java.lang.String[] cmdline, boolean silent)
cmdline
- The command line to execute. The first element must be the program name.silent
- false
for interactive mode (there the terminal is expected to be
shared by the child process and the user is allowed to directly interact with
the child process.void waitForExit(int pid, boolean silent) throws java.lang.InterruptedException
pid
- The operating system process ID of the child process on which to wait.silent
- false
for interactive mode (there the terminal is expected to be
shared by the child process and the user is allowed to directly interact with
the child process.java.lang.InterruptedException
void asynchCleanup(int pid)
pid
- The operating system process ID of the child process on which to wait.int pauseForUser()
void suspend()
resume()
to return to normal mode.void resume()
suspend()
.