Share this page

# TE_wait_silent

Synchronization Functions

Waits for the client application to be silent for a specified amount of time.

    int TE_wait_silent( int sec, int milli, int timeout );

## Inputs

sec | The interval that the terminal should remain silent, in seconds.
milli | The interval that the terminal should remain silent, in milliseconds.
timeout | The time to wait for the application to become silent, before returning an error.

The TE_wait_silent function waits for the client application to be silent for a specified amount of time. The client is considered silent when the terminal emulator does not receive any characters. If the client application does not become silent (stop receiving characters) for the specified interval by the time timeout seconds has elapsed, the function returns an error.

The TE_wait_silent function does not appear in your recorded script. However, it is executed automatically after each TE_wait_text function. It uses the values of the system variables TE_SILENT_SEC, TE_SILENT_MILLI, and TE_SILENT_TIMEOUT as its parameters.

## Return Values

This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, the script execution will wait three seconds for the screen to stabilize. If after ten seconds, the screen has not finished redrawing and is not stable, the function returns an error.

    TE_wait_silent (3, 0, 10);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: