Home > @rushstack/terminal > TerminalTransform > autocloseDestination
TerminalTransform.autocloseDestination() method
The default implementation of TerminalTransform.onClose() calls this method, which closes the TerminalTransform.destination if appropriate.
Signature:
/** @sealed */
protected autocloseDestination(): void;
Returns:
void
Remarks
The destination will not be closed if its TerminalWritable.preventAutoclose property is true
. The destination will not be closed if ITerminalTransformOptions.preventDestinationAutoclose is true
.