# wait4all

Waits string for all macro linked terminals.

    wait4all <string1> [<string2> ...]

## Remarks

Pauses until one of the character strings for all macro linked terminals at the time of executing this command is received from the host, or until the timeout occurs. Maximum number of the strings is 10.
The command does not watch the terminal executed after the command and the macro not-linked terminal.

If the system variable "timeout" or "mtimeout" is greater than zero, the timeout occurs when <timeout>.<mtimeout> seconds have passed. If the timeout is less than or equal to zero, the timeout never occurs.

These commands return one of the following values in the system variable "result":

Value | Meaning
--- | ---
0 | Timeout. No string has received.
1 | <string1> has received.
2 | <string2> has received.
n | <stringn> has received. n=1..10.

NOTICE: The Wait4allMacroCommand entry in the teraterm.ini file must be "on" to use this macro command. Rarely, the macro command does not work well.

## Example

    ; Terminal1
    pause 3000
    end

    ; Terminal2
    pause 3000
    end

    ; Terminal3
    wait4all 'message'