import { ITerminalChunk , TerminalChunkKind , TerminalWritable } from '@rushstack/terminal' ; deprecated beta export class CollatedTerminal { private readonly _destination : TerminalWritable ; public constructor ( destination ) { this . _destination = destination ; } public writeChunk ( chunk ) { this . _destination . writeChunk ( chunk ) ; } public writeStdoutLine ( message ) { this . _destination . writeChunk ( { text : message + '\n' , kind : TerminalChunkKind . Stdout } ) ; } public writeStderrLine ( message ) { this . _destination . writeChunk ( { text : message + '\n' , kind : TerminalChunkKind . Stderr } ) ; } }