Handbook
Glossary
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
style
an
assoc
stream
an 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
IN:
io.styles
GENERIC:
make-span-stream
( style stream -- stream' )
Methods
USING:
io.streams.256color.private
io.styles
kernel
;
M:
256color
make-span-stream
swap
<style-stream>
<ignore-close-stream>
;
USING:
io.streams.ansi.private
io.styles
kernel
;
M:
ansi
make-span-stream
swap
<style-stream>
<ignore-close-stream>
;
USING:
accessors
io.streams.duplex
io.styles
kernel
;
M:
duplex-stream
make-span-stream
[
out>>
]
call
\
make-span-stream
execute
;
USING:
accessors
io.styles
kernel
;
M:
filter-writer
make-span-stream
[
stream>>
]
call
\
make-span-stream
execute
;
USING:
html.streams
html.streams.private
io.styles
;
M:
html-writer
make-span-stream
html-span-stream
new-html-sub-stream
;
USING:
io.styles
kernel
ui.gadgets.panes
;
M:
pane-stream
make-span-stream
swap
<style-stream>
<ignore-close-stream>
;
USING:
io.styles
kernel
pdf.streams
;
M:
pdf-writer
make-span-stream
swap
<style-stream>
<ignore-close-stream>
;
USING:
io.streams.plain
io.styles
kernel
;
M:
plain-writer
make-span-stream
swap
<style-stream>
<ignore-close-stream>
;
USING:
io.styles
io.styles.private
;
M:
style-stream
make-span-stream
nested-style
make-span-stream
;