Click or drag to resize

IWaitForHostPrompt Method

Waits for a command prompt preceeding the specified column on the screen.

Namespace:  MicroFocus.ZFE.Connector
Assembly:  MicroFocus.ZFE.Connector (in MicroFocus.ZFE.Connector.dll) Version: 1.4.444.0 (1.4.444.0)
Syntax
bool ForHostPrompt(
	string prompt,
	int column
)

Parameters

prompt
Type: SystemString
The prompt to expect.
column
Type: SystemInt32
The column where the cursor is expected.

Return Value

Type: Boolean
True if the command prompt was found, false if the command prompt was not found within the timeout period.
Remarks
This method is generally used with VT hosts where it is necessary to wait for a login or shell prompt. After the prompt is displayed the cursor will end up in a known column but the row is not necessarily consistent. To handle this situation, this method can be used to wait until the prompt has arrived.
See Also