[plt-scheme] Editor Canvas as Output Port

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Apr 29 04:30:34 EDT 2007

At Sat, 28 Apr 2007 21:27:27 -0700, "Williams, M. Douglas" wrote:
> For one thing, it 
> only works for text, while, for example, DrScheme lets me write graphic 
> elements (e.g., an image snip) using print (or printf even).  Am I correct in 
> that I need to supply an optional-write-special-proc to handle these?

Probably. DrScheme installs some write and print handlers to make
things like `fprintf' work, but adding a write-special handler is a
good starting point.

> There seem to be similar things in the Application Framework, but I've only 
> skimmed over them so far.  They seem to be overkill for simple MrEd 
> applications, but that may well be a learning curve issue more than anything.

`open-output-text-editor' is provided by plain MrEd.


Posted on the users mailing list.