9 Interactive Value Port
(require mrlib/interactive-value-port) |
(set-interactive-display-handler port) → void? port : output-port?
Sets port’s display handler (via
port-display-handler) so that when it encounters these
values:
exact, real, non-integral numbers
syntax objects
it uses write-special to send snips to the port, instead of those values. Otherwise, it behaves like the default handler.
To show values embedded in lists and other compound object, it uses pretty-print.
(set-interactive-write-handler port) → void? port : output-port?
Like set-interactive-display-handler, but sets the
port-write-handler.
(set-interactive-print-handler port) → void? port : output-port?
Like set-interactive-display-handler, but sets the
port-print-handler.