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:
ScreenDriver.UriPathAnchorNAMEBEEP_FILE_PATH, 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.
|
KeyCode |
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, getName, init, setTerminalType, shutdown, terminalTypecaptureMouseEvents, convertToOptions, createOutputManager, handleMouseEvent, updateClientMetricsgetFactory, getHostByName, getHostName, getPrimitives, getWindowSystem, inBackgroundMode, inBatchMode, isChui, playBeep, setBackgroundMode, setBatchModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchooseFiles, clientReady, deregisterWidget, isEmbeddedClient, isWeb, lockMousePointer, openMimeResource, openMimeResource, propagate, resume, setControl, setCurrentLanguage, suspend, widgetStateChangedpublic 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 ConsoleDriverpublic void clear()
clear in interface ScreenDriver<ChuiOutputManager>clear in class ConsoleDriverpublic KeyCode 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 ConsoleDrivernull if no keys were pressed since last call.public void resetMode()
resetMode in interface ScreenDriver<ChuiOutputManager>resetMode in class ConsoleDriverpublic void resume()
suspend() call.resume in interface ScreenDriver<ChuiOutputManager>resume in class ConsoleDriverpublic void suspend()
suspend in interface ScreenDriver<ChuiOutputManager>suspend in class ConsoleDriverpublic boolean setCursorStatus(boolean on)
throws java.lang.IllegalStateException
setCursorStatus in interface ScreenDriver<ChuiOutputManager>setCursorStatus in class ConsoleDriveron - true - show cursor, false - hide cursor.false.java.lang.IllegalStateException