Writing
=======
[Generic procedures for writing to ports.]
- primitive: get-print-state port
- primitive: newline [port]
Send a newline to PORT.
- primitive: port-with-print-state port pstate
- primitive: print-options-interface [setting]
- primitive: simple-format destination message . args
Write MESSAGE to DESTINATION, defaulting to `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.
- primitive: write-char chr [port]
Send character CHR to PORT.
- primitive: force-output [port]
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.
- primitive: flush-all-ports
Equivalent to calling `force-output' on all open output ports.
The return value is unspecified.