stream-format ( str style stream -- )
Factor handbook > Input and output > Formatted output > Formatted stream protocol

Next:make-span-stream ( style stream -- stream' )


Vocabulary
io.styles

Inputs and outputs
stra string
stylean assoc
streaman output stream


Generic word contract
Writes formatted text to the stream. If the stream does buffering, output may not be performed immediately; use stream-flush to force output.

The style assoc holds character style information. See Character styles.

Notes
Most code only works on one stream at a time and should instead use format; see Default input and output streams.

Errors
Throws an error if the I/O operation fails.

Definition

GENERIC: stream-format ( str style stream -- )


Methods