Configuration options of the current instance. Driver is configured on start but options can be changed later while is running.
Cleans the data buffer. Useful for making sure that the next data chunk is independent from current state.
destroy current terminal
Will write given text and then press ENTER. Just like write but appending '\r'
the string to enter
get all the data collected from start
get information about all commands run in this driver instance. Will only work when options.debug===true
Optional get data from given time
Get data printed after given timestamp
same as getDataFromLastWrite but applying strip.
Optional get data from given time
Resizes the dimensions of the pty.
THe number of columns to use.
The number of rows to use.
Starts the client with given options. Will spawn a new terminal
strips ANSI codes from a string. From https://github.com/xpl/ansicolor/blob/master/ansicolor.js
a string containing ANSI escape codes.
clean string.
Return a promise resolved after given number of milliseconds
will resolve the promise only when given number of milliseconds passed
Writes given text in the terminal
number of milliseconds after which resolve write / enter promise. Default: 0
Generated using TypeDoc
Core abstract class of Driver. Responsible of handling base write operations and read operations.