make-span-stream ( style stream -- stream' )
Factor handbook » Input and output » Formatted output » Formatted stream protocol

Prev:stream-format ( str style stream -- )
Next:make-block-stream ( style stream -- stream' )


Vocabulary
io.styles

Inputs
stylean assoc
streaman output stream


Outputs
stream'an output stream


Generic word contract
Creates an output stream which wraps stream and adds style on calls to stream-write and stream-format.

Unlike make-block-stream, the stream output is inline, and not nested in a paragraph block.

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

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

Definition

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


Methods