Manpage: Fix backslash encoding

Literal backslash needs to be written as \e.
This commit is contained in:
Jakob Haufe 2024-12-01 14:20:45 +01:00
parent 01e637cdf4
commit 0b471b68e7
No known key found for this signature in database
GPG key ID: 4CF2B218F54DAE3D

View file

@ -435,7 +435,7 @@ available:
.IP "\fBexpect(string, timeout)"
Expect string - waits for string to match or timeout before continuing.
Supports regular expressions. Special characters must be escaped with '\\\\'.
Supports regular expressions. Special characters must be escaped with '\e\e'.
Timeout is in milliseconds, defaults to 0 meaning it will wait forever.
Returns 1 on successful match, 0 on timeout, or -1 on error.