Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Next: Closing, Previous: Reading, Up: Input and Output [Contents][Index]
[Generic procedures for writing to ports.]
These procedures are for writing characters and strings to ports. For more information on writing arbitrary Scheme objects to ports, See Scheme Write.
Return the print state of the port port. If port
has no associated print state, #f
is returned.
Send a newline to port. If port is omitted, send to the current output port.
Create a new port which behaves like port, but with an included print state pstate. pstate is optional. If pstate isn’t supplied and port already has a print state, the old print state is reused.
Write message to destination, defaulting to
the current output port.
message can contain ~A
(was %s
) and
~S
(was %S
) escapes. When printed,
the escapes are replaced with corresponding members of
args:
~A
formats using display
and ~S
formats
using write
.
If destination is #t
, then use the current output
port, if destination is #f
, then return a string
containing the formatted text. Does not add a trailing newline.
Send character chr to port.
Write size bytes at buffer to port.
Note that this function does not update port-line
and
port-column
(see Reading).
Flush the specified output port, or the current output port if port is omitted. The current output buffer contents are passed to the underlying port implementation (e.g., in the case of fports, the data will be written to the file and the output buffer will be cleared.) It has no effect on an unbuffered port.
The return value is unspecified.
Equivalent to calling force-output
on
all open output ports. The return value is unspecified.
Next: Closing, Previous: Reading, Up: Input and Output [Contents][Index]