Status of Flow Serial support?

Dan Ingalls Dan at SqueakLand.org
Fri Sep 14 16:12:30 UTC 2001


>So far I've got a process doing readString's on the port but output to several TranscriptStream windows gets confused. Today I'm looking at implementing a SharedQueue, perhaps also requiring WorldState addDeferredMessage as I saw on the list.

Ken -

Craig can report on serial support in Flow, but I don't see how that will help if your readStrings are working.  From the sound of your message, the problem may have to do with how you are distributing output to your Transcripts.  If so, then perhaps the following demonstration of 26 transcripts receiving 500 random strings will help you with your problem.

------------------
 | x aTranscript dict |
x := 0.  dict := Dictionary new.
($a to: $z) do:  "open 26 transcripts"
	[:letter | ((aTranscript _ TranscriptStream new) openAsMorphLabel: letter asString)
			openInWorld; position: (x := x+30)@30; extent: 200 at 300.
	dict at: letter put: aTranscript].
(Symbol allInstances copyFrom: 1 to: 500) do:  "display 500 strings at random"
	[:s | (dict at: s first ifAbsent: [])  "distribute each by its first letter"
		doIfNotNil: [:t | t show: s; cr]]
------------------

Hope this helps

	- Dan
-- 




More information about the Squeak-dev mailing list