Members

expect_out

Output object accessible by the user. buffer contains all data on the stream between the previous two matches. This object is meant to emulate TCL Expect's expect_out behavior. For more, see http://www.tcl.tk/man/expect5.31/expect.1.html

options

Options object.

emitter

Spectcl is an emitter.

cache

String containing the data to match against thus far. Subject to matchMax restrictions. Once a match is found, the contents up to the match are flushed to expect_out.buffer.

cacheStream

A buffering stream. STDOUT/ERR is piped to this stream. Starts out paused, and is resumed when we are expecting, and is paused again when we match. We also watch this stream for eof.

child

Child object.

expecting

True if this session is currently in an expect block.

fullBuffer

Set when the cache string is longer than options.matchMax

EXP_CONTINUE

Enum values for special handling

## expect_out Output object accessible by the user. buffer contains all data on the stream between the previous two matches. This object is meant to emulate TCL Expect’s expect_out behavior. For more, see http://www.tcl.tk/man/expect5.31/expect.1.html

Kind: global variable
## options Options object.

Kind: global variable
Properties

Name Type Description
timeout number Max inactivity time, in ms. Defaults to 30s
matchMax number Max length of cache. Default to 2000

## emitter Spectcl is an emitter.

Kind: global variable
## cache String containing the data to match against thus far. Subject to matchMax restrictions. Once a match is found, the contents up to the match are flushed to expect_out.buffer.

Kind: global variable
## cacheStream A buffering stream. STDOUT/ERR is piped to this stream. Starts out paused, and is resumed when we are expecting, and is paused again when we match. We also watch this stream for eof.

Kind: global variable
## child Child object.

Kind: global variable
## expecting True if this session is currently in an expect block.

Kind: global variable
## fullBuffer Set when the cache string is longer than options.matchMax

Kind: global variable
## EXP_CONTINUE Enum values for special handling

Kind: global variable