Package dev.galasa.zos3270.spi
Class Terminal
java.lang.Object
dev.galasa.zos3270.spi.Terminal
- All Implemented Interfaces:
ITerminal
- Direct Known Subclasses:
Zos3270TerminalImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionTerminal(String id, String host, int port, boolean ssl, boolean verifyServer, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage) protectedTerminal(String id, String host, int port, boolean ssl, boolean verifyServer, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage, dev.galasa.zos3270.internal.comms.Network network) A constructor which passes-in the network object, so unit tests can use this one.Terminal(String id, String host, int port, boolean ssl, int primaryColumns, int primaryRows, int alternateColumns, int alternateRows, ITextScannerManagerSpi textScan) Deprecated, for removal: This API element is subject to removal in a future version.Terminal(String id, String host, int port, boolean ssl, ITextScannerManagerSpi textScan) Deprecated, for removal: This API element is subject to removal in a future version.use the#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead.Terminal(String id, String host, int port, ITextScannerManagerSpi textScan) Deprecated, for removal: This API element is subject to removal in a future version.use the#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead. -
Method Summary
Modifier and TypeMethodDescriptionbackTab()clear()voidconnect()cursorUp()voidenter()eraseEof()getId()home()booleanbooleanbooleanbooleanisTextInField(String text) booleanisTextInField(String text, long timeoutInMilliseconds) voidThe network thread has closed the network connection.newLine()pa1()pa2()pa3()pf1()pf10()pf11()pf12()pf13()pf14()pf15()pf16()pf17()pf18()pf19()pf2()pf20()pf21()pf22()pf23()pf24()pf3()pf4()pf5()pf6()pf7()pf8()pf9()positionCursorToFieldContaining(@NotNull String text) voidreportExtendedScreen(boolean printCursor, boolean printColour, boolean printHighlight, boolean printIntensity, boolean printProtected, boolean printNumeric, boolean printModified) Report to the log the current state of the terminal with optional extended datastream settingsTemporary Print to consoleReturn the colour of the character at the cursor positionretrieveColourAtPosition(int row, int col) Return the colour of the character at the cursor positionReturn a String of the contents of the current Field.retrieveFieldTextAfterFieldWithString(String fieldName) Returns a String of text in a Field with a given name.Return the highlighting of the character at the cursor positionretrieveHighlightAtPosition(int row, int col) Return the highlighting of the character at the cursor positionReturns the screen print out as a String.retrieveText(int row, int col, int length) Retrieve text from the screen.retrieveTextAtCursor(int length) Retrieve text from the screen.booleansearchText(String text) Perform a search on a String to check whether or not it is on the terminal screen.booleansearchText(String text, int occurrences) Perform a search on a String to check whether or not it is on the terminal screen.booleansearchText(String text, int occurrences, long milliTimeout) Perform a search on a String to check whether or not it is on the terminal screen.booleansearchText(String text, long milliTimeout) Perform a search on a String to check whether or not it is on the terminal screen.voidsetAutoReconnect(boolean newAutoReconnect) protected voidsetCurrentTerminal(Terminal currentTerminal) voidsetCursorPosition(int row, int col) Set the position of the CursorvoidsetDeviceTypes(List<String> deviceTypes) voidsetDoStartTls(boolean doStartTls) voidsetRequestedDeviceName(String deviceName) tab()Returns the current terminal screen in JSON format or null if there is no current terminal screen.voidverifyTextInField(String text) waitForTextInField(String text) intwaitForTextInField(String[] ok, String[] error) intwaitForTextInField(String[] ok, String[] error, long timeoutInMilliseconds) wfk()
-
Field Details
-
MAX_MILLISECS_TO_WAIT_FOR_NETWORK_THREAD_TO_FINISH
public static final long MAX_MILLISECS_TO_WAIT_FOR_NETWORK_THREAD_TO_FINISH- See Also:
-
textScan
-
-
Constructor Details
-
Terminal
@Deprecated(since="0.28.0", forRemoval=true) public Terminal(String id, String host, int port, ITextScannerManagerSpi textScan) throws TerminalInterruptedException Deprecated, for removal: This API element is subject to removal in a future version.use the#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Terminal
@Deprecated(since="0.28.0", forRemoval=true) public Terminal(String id, String host, int port, boolean ssl, ITextScannerManagerSpi textScan) throws TerminalInterruptedException Deprecated, for removal: This API element is subject to removal in a future version.use the#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Terminal
@Deprecated(since="0.28.0", forRemoval=true) public Terminal(String id, String host, int port, boolean ssl, int primaryColumns, int primaryRows, int alternateColumns, int alternateRows, ITextScannerManagerSpi textScan) throws TerminalInterruptedException Deprecated, for removal: This API element is subject to removal in a future version.use the#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead.- Throws:
TerminalInterruptedException
-
Terminal
public Terminal(String id, String host, int port, boolean ssl, boolean verifyServer, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage) throws TerminalInterruptedException - Throws:
TerminalInterruptedException
-
Terminal
protected Terminal(String id, String host, int port, boolean ssl, boolean verifyServer, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage, dev.galasa.zos3270.internal.comms.Network network) throws TerminalInterruptedException A constructor which passes-in the network object, so unit tests can use this one.- Throws:
TerminalInterruptedException
-
-
Method Details
-
setAutoReconnect
public void setAutoReconnect(boolean newAutoReconnect) -
setDeviceTypes
-
setRequestedDeviceName
-
getRequestedDeviceName
-
connect
- Specified by:
connectin interfaceITerminal- Throws:
NetworkException
-
disconnect
- Specified by:
disconnectin interfaceITerminal- Throws:
TerminalInterruptedException
-
networkClosed
public void networkClosed()The network thread has closed the network connection. After this point, it will immediately exit. -
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceITerminal
-
waitForKeyboard
public ITerminal waitForKeyboard() throws TimeoutException, KeyboardLockedException, TerminalInterruptedException- Specified by:
waitForKeyboardin interfaceITerminal- Throws:
TimeoutExceptionKeyboardLockedExceptionTerminalInterruptedException
-
wfk
public ITerminal wfk() throws TimeoutException, KeyboardLockedException, TerminalInterruptedException- Specified by:
wfkin interfaceITerminal- Throws:
TimeoutExceptionKeyboardLockedExceptionTerminalInterruptedException
-
getScreen
-
positionCursorToFieldContaining
public ITerminal positionCursorToFieldContaining(@NotNull @NotNull String text) throws TextNotFoundException, KeyboardLockedException - Specified by:
positionCursorToFieldContainingin interfaceITerminal- Throws:
TextNotFoundExceptionKeyboardLockedException
-
verifyTextInField
- Specified by:
verifyTextInFieldin interfaceITerminal- Throws:
TextNotFoundException
-
isTextInField
- Specified by:
isTextInFieldin interfaceITerminal
-
isTextInField
public boolean isTextInField(String text, long timeoutInMilliseconds) throws TerminalInterruptedException - Specified by:
isTextInFieldin interfaceITerminal- Throws:
TerminalInterruptedException
-
searchText
Description copied from interface:ITerminalPerform a search on a String to check whether or not it is on the terminal screen. If after a timeout the String is not found on the terminal, the method will return false to the caller.- Specified by:
searchTextin interfaceITerminal- Returns:
- if the text was found
-
searchText
Description copied from interface:ITerminalPerform a search on a String to check whether or not it is on the terminal screen. If after a timeout the String is not found on the terminal, the method will return false to the caller. The returned boolean will depend on if the amount of occurrences is found.- Specified by:
searchTextin interfaceITerminal- Returns:
- if the text was found
-
searchText
Description copied from interface:ITerminalPerform a search on a String to check whether or not it is on the terminal screen. If after a timeout the String is not found on the terminal, the method will return false to the caller.- Specified by:
searchTextin interfaceITerminal- Returns:
- if the text was found
-
searchText
Description copied from interface:ITerminalPerform a search on a String to check whether or not it is on the terminal screen. If after a timeout the String is not found on the terminal with at least the amount of occurrences input the method will return false to the caller.- Specified by:
searchTextin interfaceITerminal- Returns:
- if the text was found
-
waitForTextInField
public ITerminal waitForTextInField(String text) throws TerminalInterruptedException, TextNotFoundException, Zos3270Exception - Specified by:
waitForTextInFieldin interfaceITerminal- Returns:
- Throws:
TerminalInterruptedExceptionTextNotFoundExceptionErrorTextFoundExceptionZos3270Exception
-
waitForTextInField
public int waitForTextInField(String[] ok, String[] error) throws TerminalInterruptedException, TextNotFoundException, ErrorTextFoundException, Zos3270Exception - Specified by:
waitForTextInFieldin interfaceITerminal- Parameters:
ok- - An array of text strings to find on the screenerror- - An array of text strings deemed to be errors- Returns:
- the index of the ok string that was found
- Throws:
TerminalInterruptedException- - If the wait was interrupted for some reasonTextNotFoundException- - None of the ok or error strings were found before the timeoutErrorTextFoundException- - One of the error strings were found, index of which is in the exceptionZos3270Exception- - general zos 3270 error
-
waitForTextInField
public int waitForTextInField(String[] ok, String[] error, long timeoutInMilliseconds) throws TerminalInterruptedException, TextNotFoundException, ErrorTextFoundException, Zos3270Exception - Specified by:
waitForTextInFieldin interfaceITerminal- Parameters:
ok- - An array of text strings to find on the screenerror- - An array of text strings deemed to be errorstimeoutInMilliseconds- - timeout- Returns:
- the index of the ok string that was found
- Throws:
TerminalInterruptedException- - If the wait was interrupted for some reasonTextNotFoundException- - None of the ok or error strings were found before the timeoutErrorTextFoundException- - One of the error strings were foundZos3270Exception- - general zos 3270 error
-
type
- Specified by:
typein interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
eraseEof
- Specified by:
eraseEofin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
eraseInput
- Specified by:
eraseInputin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
tab
- Specified by:
tabin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
backTab
- Specified by:
backTabin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
cursorUp
- Specified by:
cursorUpin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
cursorDown
- Specified by:
cursorDownin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
cursorLeft
- Specified by:
cursorLeftin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
cursorRight
- Specified by:
cursorRightin interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
home
- Specified by:
homein interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
newLine
- Specified by:
newLinein interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
backSpace
- Specified by:
backSpacein interfaceITerminal- Throws:
KeyboardLockedExceptionFieldNotFoundException
-
enter
public ITerminal enter() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
enterin interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
clear
public ITerminal clear() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
clearin interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf1
public ITerminal pf1() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf1in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf2
public ITerminal pf2() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf2in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf3
public ITerminal pf3() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf3in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf4
public ITerminal pf4() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf4in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf5
public ITerminal pf5() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf5in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf6
public ITerminal pf6() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf6in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf7
public ITerminal pf7() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf7in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf8
public ITerminal pf8() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf8in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf9
public ITerminal pf9() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf9in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf10
public ITerminal pf10() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf10in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf11
public ITerminal pf11() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf11in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf12
public ITerminal pf12() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf12in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf13
public ITerminal pf13() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf13in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf14
public ITerminal pf14() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf14in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf15
public ITerminal pf15() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf15in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf16
public ITerminal pf16() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf16in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf17
public ITerminal pf17() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf17in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf18
public ITerminal pf18() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf18in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf19
public ITerminal pf19() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf19in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf20
public ITerminal pf20() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf20in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf21
public ITerminal pf21() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf21in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf22
public ITerminal pf22() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf22in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf23
public ITerminal pf23() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf23in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pf24
public ITerminal pf24() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pf24in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pa1
public ITerminal pa1() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pa1in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pa2
public ITerminal pa2() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pa2in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
pa3
public ITerminal pa3() throws KeyboardLockedException, NetworkException, TerminalInterruptedException- Specified by:
pa3in interfaceITerminal- Throws:
KeyboardLockedExceptionNetworkExceptionTerminalInterruptedException
-
reportScreen
Description copied from interface:ITerminalTemporary Print to console- Specified by:
reportScreenin interfaceITerminal- Returns:
- ITerminal for chaining
-
reportScreenWithCursor
- Specified by:
reportScreenWithCursorin interfaceITerminal
-
reportExtendedScreen
public ITerminal reportExtendedScreen(boolean printCursor, boolean printColour, boolean printHighlight, boolean printIntensity, boolean printProtected, boolean printNumeric, boolean printModified) throws Zos3270Exception Description copied from interface:ITerminalReport to the log the current state of the terminal with optional extended datastream settings- Specified by:
reportExtendedScreenin interfaceITerminal- Parameters:
printCursor- - report cursor positionprintColour- - report the colourprintHighlight- - report highlightingprintIntensity- - report intensityprintProtected- - report field protectionprintNumeric- - report numeric restrictionsprintModified- - report field modification- Returns:
- the ITerminal for fluent API
- Throws:
Zos3270Exception
-
getId
-
retrieveScreen
Returns the screen print out as a String. For use in edge testing cases.- Specified by:
retrieveScreenin interfaceITerminal- Returns:
- Screen as String
-
retrieveFieldAtCursor
Return a String of the contents of the current Field. Current field is the one which the cursor is at.- Specified by:
retrieveFieldAtCursorin interfaceITerminal- Returns:
- Current Field as String
-
retrieveFieldTextAfterFieldWithString
Returns a String of text in a Field with a given name.- Specified by:
retrieveFieldTextAfterFieldWithStringin interfaceITerminal- Parameters:
fieldName- Name of the field to be extracted from- Returns:
- String which has been extracted from the field
- Throws:
TextNotFoundException
-
getHostPort
-
registerDatastreamListener
- Specified by:
registerDatastreamListenerin interfaceITerminal
-
unregisterDatastreamListener
- Specified by:
unregisterDatastreamListenerin interfaceITerminal
-
isSwitchedSSL
public boolean isSwitchedSSL()- Specified by:
isSwitchedSSLin interfaceITerminal
-
setDoStartTls
public void setDoStartTls(boolean doStartTls) - Specified by:
setDoStartTlsin interfaceITerminal
-
isClearScreen
public boolean isClearScreen()- Specified by:
isClearScreenin interfaceITerminal
-
setCursorPosition
Description copied from interface:ITerminalSet the position of the Cursor- Specified by:
setCursorPositionin interfaceITerminal- Parameters:
row- - The row on the screen to set the cursorcol- - the column on the screen to set the cursor- Throws:
KeyboardLockedException- - If an attempt is made to move the cursor whilst the screen is lockedZos3270Exception- - If the position exceeds the boundaries of the screen
-
retrieveText
Description copied from interface:ITerminalRetrieve text from the screen. Null characters and field attribute positions are replaced with spaces. If there are not enough characters on the row to satisfy the length requirement, the retrieve will wrap to the next row, unless it is the last row, in which case an exception will be thrown.- Specified by:
retrieveTextin interfaceITerminal- Parameters:
row- - The row on the screen to start the extractcol- - The column on the screen to start the extractlength- - The number of characters to extract- Returns:
- The contents extracted
- Throws:
Zos3270Exception- - If the position exceeds the boundaries of the screen or the length causes the extract to overflow the end of the screen buffer
-
retrieveTextAtCursor
Description copied from interface:ITerminalRetrieve text from the screen. Null characters and field attribute positions are replaced with spaces. If there are not enough characters on the row to satisfy the length requirement, the retrieve will wrap to the next row, unless it is the last row, in which case an exception will be thrown.- Specified by:
retrieveTextAtCursorin interfaceITerminal- Parameters:
length- - The number of characters to extract- Returns:
- The contents extracted
- Throws:
Zos3270Exception- - If the length causes the extract to overflow the end of the screen buffer
-
retrieveColourAtCursor
Description copied from interface:ITerminalReturn the colour of the character at the cursor position- Specified by:
retrieveColourAtCursorin interfaceITerminal- Returns:
- - if position is not in an extended field, null us returned
-
retrieveColourAtPosition
Description copied from interface:ITerminalReturn the colour of the character at the cursor position- Specified by:
retrieveColourAtPositionin interfaceITerminal- Parameters:
row- of the screen, index 1 basedcol- of the screen, index 1 based- Returns:
- - if position is not in an extended field, null us returned
- Throws:
Zos3270Exception
-
retrieveHighlightAtCursor
Description copied from interface:ITerminalReturn the highlighting of the character at the cursor position- Specified by:
retrieveHighlightAtCursorin interfaceITerminal- Returns:
- - if position is not in an extended field, null us returned
-
retrieveHighlightAtPosition
Description copied from interface:ITerminalReturn the highlighting of the character at the cursor position- Specified by:
retrieveHighlightAtPositionin interfaceITerminal- Parameters:
row- of the screen, index 1 basedcol- of the screen, index 1 based- Returns:
- - if position is not in an extended field, null us returned
- Throws:
Zos3270Exception
-
toJsonString
Description copied from interface:ITerminalReturns the current terminal screen in JSON format or null if there is no current terminal screen.- Specified by:
toJsonStringin interfaceITerminal- Returns:
- the current terminal screen in JSON format or null if there is no current terminal screen
-
setCurrentTerminal
-
#Terminal(String id, String host, int port, boolean ssl, TerminalSize primarySize, TerminalSize alternateSize, ITextScannerManagerSpi textScan, Charset codePage)constructor instead.