Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > ITerminalWritableOptions > preventAutoclose

ITerminalWritableOptions.preventAutoclose property

When this object is the TerminalTransform.destination for a transform, the transform will automatically close this object. Set preventAutoclose to true to prevent that behavior.

Signature:

preventAutoclose?: boolean;

Remarks

When a transform is closed, normally it will automatically close its destination TerminalWritable object. There are two ways to prevent that: either by setting preventDestinationAutoclose to true for the transform, or by setting TerminalWritable.preventAutoclose to true for the destination object.