gui/collects/mrlib/scribblings/interactive-value-port.scrbl
Matthew Flatt 984bf9ee05 move doc sub-dirs to scribblings sub-dirs
svn: r8281

original commit: b76aa843ab09e8c1c5f5de9e033b7170ed64acd4
2008-01-10 20:07:32 +00:00

43 lines
1021 B
Racket

#lang scribble/doc
@(require "common.ss"
(for-label mrlib/interactive-value-port
scheme/pretty))
@title{Interactive Value Port}
@defmodule[mrlib/interactive-value-port]
@defproc[(set-interactive-display-handler [port output-port?]) void?]{
Sets @scheme[port]'s display handler (via
@scheme[port-display-handler]) so that when it encounters these
values:
@itemize{
@item{exact, real, non-integral numbers}
@item{syntax objects}
}
it uses @scheme[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
@scheme[pretty-print].}
@defproc[(set-interactive-write-handler [port output-port?]) void?]{
Like @scheme[set-interactive-display-handler], but sets the
@scheme[port-write-handler].}
@defproc[(set-interactive-print-handler [port output-port?]) void?]{
Like @scheme[set-interactive-display-handler], but sets the
@scheme[port-print-handler].}