I often use Transcript output in my adhoc issue-isolation scripts, and
it would be nice to ensure a Transcript is open at the start of a
script, but I can't current see an option besides "Transcript open"
which would open too many Transcripts over time. I'd like to add to
Pharo something like...
ThreadSafeTranscript >> ensureOpen
"It seems that closed Transcript windows hang around and confuse the
#detect.
Garbage collecting is easier than trying to reopen a closed window. "
Smalltalk garbageCollect.
^ PluggableTextMorph allInstances
detect: [ :ptm | ptm model = self ]
ifNone: [ self open ]
The hard coding of PluggableTextMorph matches that in
ThreadSafeTranscript >> openLabel:.
Thoughts anyone?
cheers -ben