Cotal TypeScript packages
    Preparing search index...
    • draw() with the helpers in c painting for stream, so its text is colored only when that stream is. draw must be synchronous: the stream is held only while it runs. Outside it a helper cannot tell where its text goes, so it colors only when stdout and stderr both would.

      Type Parameters

      • T

      Parameters

      • stream: WriteStream
      • draw: () => T

      Returns T