Handbook
Glossary
with-nesting ( style quot -- )
Factor handbook
»
Input and output
»
Formatted output
»
Formatted output on the default stream
Prev:
with-style ( style quot -- )
Next:
tabular-output ( style quot -- )
Vocabulary
io
.
styles
Inputs
style
an
assoc
quot
a
quotation
Outputs
None
Word description
Calls the quotation in a new dynamic scope with
output-stream
rebound to a nested paragraph stream, with formatting information applied.
Notes
Details are in the documentation for
make-block-stream
.
Errors
Throws an error if the I/O operation fails.
Definition
USING:
io
kernel
namespaces
;
IN:
io.styles
:
with-nesting
( style quot -- )
[
output-stream
get
make-block-stream
]
dip
with-output-stream
;
inline