MrLib: Extra GUI Libraries

1`` | Aligned Pasteboard
2`` | Bitmap Label
3`` | Cache-image Snip
4`` | GIF and Animated GFI Writing
5`` | Graphs
6`` | Hierarchical List Control
7`` | Include Bitmap
8`` | Interactive Value Port
9`` | Name Message
10`` | Path Dialog
11`` | Plot
12`` | Switchable Button
13`` | Acknowledgments
| Index

On this page:

set-interactive-display-handler
set-interactive-write-handler
set-interactive-print-handler

Version: 4.0.2
contents index
← prev up next →

### 8`` 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.

contents index
← prev up next →