Escape Codes
Some properties support C-style escape codes.
You can use C-style escape codes in the following properties:
- ChatinString
- ChatoutString
- HeartbeatString
This allows you to easily define whether or not to send escape
code sequences after commands. For example, the following ChatinString
sends a carriage return character (\r) after the username and password:
ChatinString : ".*: user\r .*: passwd\r .*:"
The following character sequences are recognized.
Escape code | Character |
---|---|
\b | Backspace |
\f | Form-feed |
\n | New-line |
\r | Carriage return |
\t | Tab |
\\ | Backslash |
\' | Single quote |
\" | Double quote |
Note: The escape sequences for backslash, single quote, and
double quote should be double-escaped. For example, to send a backslash
character (\) use \\\\.