Home > @rushstack/terminal > TerminalWritable > writeChunk

TerminalWritable.writeChunk() method

Upstream objects call this method to provide inputs to this object.

Signature:

/** @sealed */
writeChunk(chunk: ITerminalChunk): void;

Parameters

Parameter Type Description
chunk ITerminalChunk  

Returns:

void

Remarks

The subclass provides its implementation via the the TerminalWritable.onWriteChunk() method, which is called by writeChunk().

The object that calls writeChunk() must call close() when it is finished; failing to do so may introduce a resource leak, or may prevent some buffered data from being written.