String() action

Enters text on the terminal, as if typed on the keyboard.

Parameters

 * -subst
 * If provided as the first parameter, variable substitution will be performed on the string. New in 4.1


 * string
 * Text to add. The text can include string escape sequences.

Variable substitution
New in 4.1

If the -subst option is given, environment variables will be substituted in the string. These use bash syntax, e.g., ${USER} will be substituted with the value of the USER environment variable.

Examples
Add the string. String(foo) Add the string, tab to the next field, add the string  , and send an Enter AID. String("username\tpassword\n") Add a string, substituting the USER environment variable: New in 4.1 String(-subst,"login ${USER}\n")