mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 11:28:22 +01:00
print log using stdout instead of Transcript
This commit is contained in:
parent
1884963e4e
commit
29e4065fe1
6
Diya/ClassDescription.extension.st
Normal file
6
Diya/ClassDescription.extension.st
Normal file
@ -0,0 +1,6 @@
|
||||
Extension { #name : #ClassDescription }
|
||||
|
||||
{ #category : #'*Diya' }
|
||||
ClassDescription >> classCommentBlank [
|
||||
^ ''
|
||||
]
|
@ -3,3 +3,13 @@ Class {
|
||||
#superclass : #Object,
|
||||
#category : #'Diya-Core'
|
||||
}
|
||||
|
||||
{ #category : #accessing }
|
||||
DiyaBaseObject >> stderr [
|
||||
VTermOutputDriver stderr
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
DiyaBaseObject >> stdout [
|
||||
^ VTermOutputDriver stdout
|
||||
]
|
||||
|
@ -72,7 +72,10 @@ DiyaBoot >> init [
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> initialize [
|
||||
running := true
|
||||
running := true.
|
||||
display := nil.
|
||||
window := nil.
|
||||
renderer := nil.
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
@ -139,8 +142,8 @@ DiyaBoot >> setCursorPosition: mappedEvt [
|
||||
|
||||
{ #category : #logging }
|
||||
DiyaBoot >> showSystemInfo [
|
||||
|stream numdriver rinfo |
|
||||
stream := String new writeStream.
|
||||
|stream numdriver rinfo|
|
||||
stream := (String new: 255) writeStream.
|
||||
stream nextPutAll:'System: ';
|
||||
nextPutAll:(Smalltalk globals at: #CODENAME ifAbsent:['']);
|
||||
nextPutAll: '-v';
|
||||
@ -167,12 +170,13 @@ DiyaBoot >> showSystemInfo [
|
||||
nextPutAll:display w asString;
|
||||
nextPutAll: 'x';
|
||||
nextPutAll: display h asString; cr.
|
||||
Transcript show: stream contents
|
||||
self stdout nextPutAll: stream contents
|
||||
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> startx [
|
||||
display ifNil: [ ^self error: 'Please run #init before this method' ].
|
||||
window := self createWindow.
|
||||
renderer := self createRenderer.
|
||||
self showSystemInfo.
|
||||
|
Loading…
Reference in New Issue
Block a user