eCos Reference Manual
Prev | Chapter 47. CHAT Scripts | Next

# Escape Sequences

Most standard chat escape sequences can be replaced with standard C string escapes such as '\r', '\n', '\t' etc. Additional escape sequences may be embedded in the expect or reply strings by introducing them with two backslashes.

\\c

  Suppresses the newline at the end of the reply string. This is the only method to send a string without a trailing return character. It must be at the end of the send string. For example, the sequence "hello\\c" will simply send the characters h, e, l, l, o. (not valid in expect strings.)

Prev | Home | Next
Sending EOT | Up | PPP Enabled Device Drivers