with-style ( style quot -- )
Factor handbook » Input and output » Formatted output » Formatted output on the default stream

Prev:format ( str style -- )
Next:with-nesting ( style quot -- )

Vocabulary
io.styles

Inputs
stylean assoc
quota quotation
Outputs
None

Word description
Calls the quotation in a new dynamic scope where calls to write, format and other stream output words automatically inherit style settings from style.

Notes
Details are in the documentation for make-span-stream.

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

Definition