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.5.532.0 (1.5.532.0)
bool ForHostPrompt(
	string prompt,
	int column


Type: SystemString
The prompt to expect.
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.
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