public abstract class AbstractChildProcess extends java.lang.Object implements InteractiveChildProcess
Modifier and Type | Field and Description |
---|---|
protected boolean |
artificial
Artificial terminal flag (
true if the client has no native terminal). |
protected boolean |
batch
Batch mode flag.
|
protected ThinClient |
terminal
Core client helpers.
|
Constructor and Description |
---|
AbstractChildProcess(ThinClient terminal,
boolean batch,
boolean artificial)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asynchCleanup, launch, waitForExit
protected ThinClient terminal
protected boolean batch
protected boolean artificial
true
if the client has no native terminal).public AbstractChildProcess(ThinClient terminal, boolean batch, boolean artificial)
terminal
- Core client helpers.batch
- Batch mode flag.artificial
- Artificial terminal flag (true
if the client has no native
terminal).public boolean inBatchMode()
inBatchMode
in interface InteractiveChildProcess
true
if in batch mode.public boolean isArtificialTerm()
isArtificialTerm
in interface InteractiveChildProcess
true
if this is an artificial terminal (there is no native
terminal).public int pauseForUser()
pauseForUser
in interface InteractiveChildProcess
public void suspend()
resume()
to return to normal mode.suspend
in interface InteractiveChildProcess
public void resume()
suspend()
.resume
in interface InteractiveChildProcess