mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add simple expect functionality.
The expect(string) function will wait for input from the tty device and
only return when there is a string match. Regular expressions are
supported.
Example:
script = expect('password:'); send('my_password\n')
|
||
|---|---|---|
| .. | ||
| meson.build | ||
| tio.1.in | ||
| tio.1.txt | ||