$tcp_on_read
–
Callback pattern mapping for lines ready by tcp_read
$tcp_on_read
defines a mapping of function name to TCP line pattern.
When a line is read by tcp_read
then all patterns are tested against the line.
The functions (i.e. the keys of this array) of matching patterns are called with two arguments:
- session name
- the new line
Links
BashSupport Pro is a Zsh IDE with support for $tcp_on_read – try it now!