smalltalk_r.rc
author Claus Gittinger <cg@exept.de>
Sat, 09 Feb 2019 16:58:53 +0100
changeset 1588 2727a9f4ac36
parent 609 f0f51d4a0066
child 1499 7aa84447bdf1
permissions -rw-r--r--
*** empty log message ***

"/ Encoding: iso8859-1
"/
"/ $Header$
"/
"/ MIMEType: application/x-smalltalk-source
"/
"/ ST/X startup configuration & command file:
"/
"/ restart configuration for smalltalk
"/
"/ this file plays the role of smalltalk.rc when an image
"/ is restarted. Usually, everything should stay as it was,
"/ except for things like keyboard mapping (if running on another display)
"/

"/ first, restart the Display connection
Display notNil ifTrue:[
    [
	Display reinitializeFor:Screen defaultDisplayName.
    ] on:Screen deviceOpenErrorSignal do:[
	'smalltalk_r.rc [error]: Cannot restart connection to: ' errorPrint.
	Screen defaultDisplayName errorPrintCR.
	Smalltalk exit.
    ].
].
"/ Tell smalltalk, that the display may be used now.
Smalltalk displayInitializationDone.

"/
"/ this handles all variant display stuff
"/ (i.e. things which might change, when DISPLAY is set different)
"/
Smalltalk fileIn:'display.rc'.

"/
"/ this defines stuff relating to the machine we are running on
"/ (which may also be different after a snapIn)
"/
Smalltalk fileIn:'host.rc'.

"/
"/ if the image was saved with the dynamic compiler turned on,
"/ turn it on again.
"/ If you encounter any problems with it, remove the line below.
"/
ObjectMemory reEnableJustInTimeCompilation.
ObjectMemory oldSpaceCompressLimit:0.   "/ temporary kludge