waitfor(options)
Instance Public methods
Read data from the host until a certain sequence is matched.
If a block is given, the received data will be yielded as it is read in
(not necessarily all in one go), or nil if EOF occurs before any data is
received. Whether a block is given or not, all data read will be returned
in a single string, or again nil if EOF occurs before any data is received.
Note that received data includes the matched sequence we were looking for.
options can b