public class BatchDriver extends ConsoleDriver
During initialization, the Progress 4GL client in batch mode outputs a Progress logo, copyright notice and version when run in the foreground (and just the version when run in the background). This implementation is deliberately NOT duplicating these outputs for these reasons:
direct, factory
Constructor and Description |
---|
BatchDriver(BootstrapConfig cfg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
beep()
Generate a beep signal.
|
void |
clear()
Clear screen.
|
int |
readKey()
Read the key from terminal and translate it into P2J internal
representation.
|
void |
resetMode()
Reset screen mode.
|
void |
resume()
Resume terminal after
suspend() call. |
boolean |
setCursorStatus(boolean on)
Set cursor status (ON/OFF).
|
void |
suspend()
Suspend terminal and release it for use by other applications.
|
getChildProcessFactory, init, setTerminalType, terminalType
captureMouseEvents, convertToOptions, createOutputManager, handleMouseEvent
getFactory, getPrimitives, getWindowSystem, inBackgroundMode, inBatchMode, isChui, setBackgroundMode, setBatchMode, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clientReady, lockMousePointer, openMimeResource, propagate, resume, setControl, suspend
public BatchDriver(BootstrapConfig cfg)
cfg
- The BootstrapConfig
configuration.public void beep()
Implementation deoends on native layer and (in turn) from particular terminal. If terminal does not support this feature or sound in terminal is turned off, there will be no audible feedback to user.
beep
in interface ScreenDriver<ChuiOutputManager>
beep
in class ConsoleDriver
public void clear()
clear
in interface ScreenDriver<ChuiOutputManager>
clear
in class ConsoleDriver
public int readKey()
KeyProcessor
class.
Mouse events (which also returned from native layer) are filtered out
because mouse is not supported.readKey
in interface ScreenDriver<ChuiOutputManager>
readKey
in class ConsoleDriver
public void resetMode()
resetMode
in interface ScreenDriver<ChuiOutputManager>
resetMode
in class ConsoleDriver
public void resume()
suspend()
call.resume
in interface ScreenDriver<ChuiOutputManager>
resume
in class ConsoleDriver
public void suspend()
suspend
in interface ScreenDriver<ChuiOutputManager>
suspend
in class ConsoleDriver
public boolean setCursorStatus(boolean on) throws java.lang.IllegalStateException
setCursorStatus
in interface ScreenDriver<ChuiOutputManager>
setCursorStatus
in class ConsoleDriver
on
- true
- show cursor, false
- hide cursor.false
.java.lang.IllegalStateException