Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
TranscriptStream
Last updated at 10:01 pm UTC on 3 November 2020
The class TranscriptStream is a subclass of WriteStream.

The most interesting methods are:



The following method with ToolBuilderSpecs is used to build the Transcript window

buildWith: builder
	| windowSpec textSpec |
	windowSpec := builder pluggableWindowSpec new.
	windowSpec model: self.
	windowSpec label: 'Transcript'.
	windowSpec children: OrderedCollection new.

	textSpec := builder pluggableTextSpec new.
	textSpec 
		model: self;
		menu: #codePaneMenu:shifted:;
		frame: (0@0corner: 1@1).
	windowSpec children add: textSpec.

	^builder build: windowSpec


There is also a preference for "Redirect transcript to stdout" that can be useful for keeping a record of the updates.

See also

TranscriptStream new openLabel: 'MyReport'.