The Trunk: Files-dtl.163.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Files-dtl.163.mcz

commits-2
David T. Lewis uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-dtl.163.mcz

==================== Summary ====================

Name: Files-dtl.163
Author: dtl
Time: 27 August 2016, 11:16:05.899859 pm
UUID: b4b2f4c1-4c24-44b4-8fc7-90a63a0f5940
Ancestors: Files-ul.162

Add StandardFileStream>>update: to handle #appendEntry by flushing the stream. This allows the standard output stream to be a dependent of the Transcript, flushing output as expected for a transcript view.

=============== Diff against Files-ul.162 ===============

Item was changed:
  ----- Method: FileStream class>>startUp: (in category 'system startup') -----
  startUp: resuming
 
  resuming ifTrue: [
  self voidStdioFiles.
  [ TheStdioHandles := self stdioHandles ]
  on: Error
  do: [:ex|
  TheStdioHandles isArray ifFalse: [
+ TheStdioHandles := Array new: 3 ] ].
+ (Smalltalk at: #TranscriptStream)
+ ifNotNilDo: [ :t | "Reestablish dependency for stdout Transcript view"
+ t redirectToStdOut: t redirectToStdOut ] ]!
- TheStdioHandles := Array new: 3 ] ] ]!

Item was added:
+ ----- Method: StandardFileStream>>update: (in category 'updating') -----
+ update: aParameter
+ super update: aParameter.
+ aParameter == #appendEntry
+ ifTrue: [self flush]. "Transcript is being redirected to this steam, stdout"
+ !