author | Claus Gittinger <cg@exept.de> |
Mon, 09 Aug 1999 16:51:41 +0200 | |
changeset 379 | b3a111bac465 |
parent 354 | bfddecfed2d2 |
child 394 | 70ecff920548 |
permissions | -rw-r--r-- |
0 | 1 |
"* |
2 |
* $Header$ |
|
5 | 3 |
* |
298 | 4 |
* ST/X startup display configuration file: |
209 | 5 |
* |
5 | 6 |
* DONT add site specific things here - use your own d_xxx.rc file instead |
8 | 7 |
* where xxx stands for your displays hostname(s) |
5 | 8 |
* |
9 |
* display related configuration: |
|
298 | 10 |
* first do some common setup, then try to figure out |
11 |
* the kind of display and find a |
|
5 | 12 |
* display specific initialization file. |
0 | 13 |
*" |
14 |
||
15 |
"* |
|
7 | 16 |
* define extensions for image files (i.e. extension-to-readerClass |
17 |
* mappings). Some of the readers are autoloaded (see patches file). |
|
18 |
* Moved this from code to here (from Image-class), for more flexibility |
|
5 | 19 |
* actually since this is not display- but host specific (naming conventions) |
20 |
* it should be moved into the host.rc or h_xxx.rc file |
|
84 | 21 |
* |
48
892180489f28
avoid warnings, if ImageReader classes are not available
Claus Gittinger <cg@exept.de>
parents:
47
diff
changeset
|
22 |
* Some readers are optional and therefore, only installed if the |
84 | 23 |
* corresponding Smalltalk class is nonNil; not accessing it as global, |
24 |
* but via a SMalltalk>>at: message - this avoids warning messages |
|
25 |
* during startup, if classes are missing and the globals are undefined. |
|
5 | 26 |
*" |
230 | 27 |
|rdr| |
28 |
||
29 |
MIMETypes notNil ifTrue:[ |
|
5 | 30 |
|
230 | 31 |
rdr := Smalltalk at:#XBMReader ifAbsent:nil. |
32 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
33 |
MIMETypes defineImageType:'image/x-xbitmap' suffix:'xbm' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
34 |
MIMETypes defineImageType:nil suffix:'bm' reader:rdr. |
230 | 35 |
]. |
36 |
rdr := Smalltalk at:#TIFFReader ifAbsent:nil. |
|
37 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
38 |
MIMETypes defineImageType:'image/tiff' suffix:'tif' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
39 |
MIMETypes defineImageType:nil suffix:'tiff' reader:rdr. |
230 | 40 |
]. |
41 |
rdr := Smalltalk at:#GIFReader ifAbsent:nil. |
|
42 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
43 |
MIMETypes defineImageType:'image/gif' suffix:'gif' reader:rdr. |
230 | 44 |
]. |
48
892180489f28
avoid warnings, if ImageReader classes are not available
Claus Gittinger <cg@exept.de>
parents:
47
diff
changeset
|
45 |
|
230 | 46 |
"/ still to come ... |
47 |
"/ '.img' put:IMGReader. |
|
48 |
"/ '.IMG' put:IMGReader. |
|
49 |
"/ '.mac' put:MacPaintReader. |
|
7 | 50 |
|
230 | 51 |
rdr := Smalltalk at:#SunRasterReader ifAbsent:nil. |
52 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
53 |
MIMETypes defineImageType:nil suffix:'im8' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
54 |
MIMETypes defineImageType:nil suffix:'icon' reader:rdr. |
230 | 55 |
]. |
7 | 56 |
|
230 | 57 |
"/ still to come ... |
58 |
"/ '.g3' put:G3FileReader. |
|
7 | 59 |
|
230 | 60 |
rdr := Smalltalk at:#WindowsIconReader ifAbsent:nil. |
61 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
62 |
MIMETypes defineImageType:'image/x-MS-bmp' suffix:'bmp' reader:rdr. |
338 | 63 |
MIMETypes defineImageType:'image/x-MS-ico' suffix:'ico' reader:rdr. |
230 | 64 |
]. |
7 | 65 |
|
230 | 66 |
rdr := Smalltalk at:#JPEGReader ifAbsent:nil. |
67 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
68 |
MIMETypes defineImageType:'image/jpeg' suffix:'jpg' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
69 |
MIMETypes defineImageType:nil suffix:'jpeg' reader:rdr. |
230 | 70 |
]. |
7 | 71 |
|
230 | 72 |
rdr := Smalltalk at:#PBMReader ifAbsent:nil. |
73 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
74 |
MIMETypes defineImageType:'image/x-portable-pixmap' suffix:'ppm' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
75 |
MIMETypes defineImageType:'image/x-portable-bitmap' suffix:'pbm' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
76 |
MIMETypes defineImageType:'image/x-portable-graymap' suffix:'pgm' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
77 |
MIMETypes defineImageType:'image/x-portable-anymap' suffix:'pnm' reader:rdr. |
230 | 78 |
]. |
7 | 79 |
|
230 | 80 |
rdr := Smalltalk at:#ST80FormReader ifAbsent:nil. |
81 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
82 |
MIMETypes defineImageType:nil suffix:'form' reader:rdr. |
230 | 83 |
]. |
48
892180489f28
avoid warnings, if ImageReader classes are not available
Claus Gittinger <cg@exept.de>
parents:
47
diff
changeset
|
84 |
|
230 | 85 |
rdr := Smalltalk at:#FaceReader ifAbsent:nil. |
86 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
87 |
MIMETypes defineImageType:nil suffix:'face' reader:rdr. |
230 | 88 |
]. |
48
892180489f28
avoid warnings, if ImageReader classes are not available
Claus Gittinger <cg@exept.de>
parents:
47
diff
changeset
|
89 |
|
230 | 90 |
rdr := Smalltalk at:#XPMReader ifAbsent:nil. |
91 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
92 |
MIMETypes defineImageType:'image/x-xpixmap' suffix:'xpm' reader:rdr. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
93 |
MIMETypes defineImageType:nil suffix:'pm' reader:rdr. |
230 | 94 |
]. |
7 | 95 |
|
230 | 96 |
rdr := Smalltalk at:#PCXReader ifAbsent:nil. |
97 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
98 |
MIMETypes defineImageType:'image/x-pcx' suffix:'pcx' reader:rdr. |
230 | 99 |
]. |
48
892180489f28
avoid warnings, if ImageReader classes are not available
Claus Gittinger <cg@exept.de>
parents:
47
diff
changeset
|
100 |
|
230 | 101 |
rdr := Smalltalk at:#TargaReader ifAbsent:nil. |
102 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
103 |
MIMETypes defineImageType:'image/x-targa' suffix:'tga' reader:rdr. |
230 | 104 |
]. |
14 | 105 |
|
230 | 106 |
rdr := Smalltalk at:#XWDReader ifAbsent:nil. |
107 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
108 |
MIMETypes defineImageType:'image/x-xwindowdump' suffix:'xwd' reader:rdr. |
230 | 109 |
]. |
47 | 110 |
|
230 | 111 |
rdr := Smalltalk at:#BlitImageReader ifAbsent:nil. |
112 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
113 |
MIMETypes defineImageType:nil suffix:'48x48x1' reader:rdr. |
230 | 114 |
]. |
205 | 115 |
|
230 | 116 |
rdr := Smalltalk at:#IrisRGBReader ifAbsent:nil. |
117 |
rdr notNil ifTrue:[ |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
118 |
MIMETypes defineImageType:'image/x-rgb' suffix:'rgb' reader:rdr. |
230 | 119 |
]. |
205 | 120 |
|
298 | 121 |
"/ experimanetal and not yet finished / delivered |
227 | 122 |
|
230 | 123 |
"/ rdr := Smalltalk at:#PNGReader ifAbsent:nil. |
124 |
"/ rdr notNil ifTrue:[ |
|
125 |
"/ MIMETypes defineImageType:'image/x-png' suffix:'png' reader:rdr. |
|
126 |
"/ ]. |
|
227 | 127 |
|
230 | 128 |
"/ rdr := Smalltalk at:#PCDReader ifAbsent:nil. |
129 |
"/ rdr notNil ifTrue:[ |
|
130 |
"/ MIMETypes defineImageType:'image/x-photo-cd' suffix:'pcd' reader:rdr. |
|
131 |
"/ ]. |
|
227 | 132 |
|
230 | 133 |
"/ rdr := Smalltalk at:#CMURasterReader ifAbsent:nil. |
134 |
"/ rdr notNil ifTrue:[ |
|
135 |
"/ MIMETypes defineImageType:'image/x-cmu-raster' suffix:'ras' reader:rdr. |
|
136 |
"/ ]. |
|
227 | 137 |
|
298 | 138 |
"/ movie formats - experimanetal and not yet complete / finished / delivered |
205 | 139 |
|
230 | 140 |
"/ rdr := Smalltalk at:#FLIReader ifAbsent:nil. |
141 |
"/ rdr notNil ifTrue:[ |
|
142 |
"/ MIMETypes defineImageType:'video/x-fli' suffix:'fli' reader:rdr. |
|
143 |
"/ ]. |
|
205 | 144 |
|
230 | 145 |
"/ rdr := Smalltalk at:#AVIReader ifAbsent:nil. |
146 |
"/ rdr notNil ifTrue:[ |
|
147 |
"/ MIMETypes defineImageType:'video/x-msvideo' suffix:'avi' reader:rdr. |
|
148 |
"/ ]. |
|
227 | 149 |
|
230 | 150 |
"/ rdr := Smalltalk at:#QuickTimeReader ifAbsent:nil. |
151 |
"/ rdr notNil ifTrue:[ |
|
152 |
"/ MIMETypes defineImageType:'video/quicktime' suffix:'qt' reader:rdr. |
|
153 |
"/ MIMETypes defineImageType:nil suffix:'mov' reader:rdr. |
|
154 |
"/ MIMETypes defineImageType:nil suffix:'moov' reader:rdr. |
|
155 |
"/ ]. |
|
227 | 156 |
|
230 | 157 |
"/ rdr := Smalltalk at:#MPEG2Reader ifAbsent:nil. |
158 |
"/ rdr notNil ifTrue:[ |
|
159 |
"/ MIMETypes defineImageType:'video/x-mpeg2' suffix:'mpg2' reader:rdr. |
|
160 |
"/ MIMETypes defineImageType:nil suffix:'mpv2' reader:rdr. |
|
161 |
"/ MIMETypes defineImageType:nil suffix:'mp2v' reader:rdr. |
|
162 |
"/ MIMETypes defineImageType:nil suffix:'mp2' reader:rdr. |
|
163 |
"/ ]. |
|
227 | 164 |
|
230 | 165 |
"/ rdr := Smalltalk at:#MPEGReader ifAbsent:nil. |
166 |
"/ rdr notNil ifTrue:[ |
|
167 |
"/ MIMETypes defineImageType:'video/mpeg' suffix:'mpg' reader:rdr. |
|
168 |
"/ MIMETypes defineImageType:nil suffix:'mpeg' reader:rdr. |
|
169 |
"/ MIMETypes defineImageType:nil suffix:'mpe' reader:rdr. |
|
170 |
"/ MIMETypes defineImageType:nil suffix:'mpv' reader:rdr. |
|
171 |
"/ MIMETypes defineImageType:nil suffix:'vbs' reader:rdr. |
|
172 |
"/ MIMETypes defineImageType:nil suffix:'mpegv' reader:rdr. |
|
173 |
"/ ]. |
|
227 | 174 |
|
230 | 175 |
"/ rdr := Smalltalk at:#SGIMovieReader ifAbsent:nil. |
176 |
"/ rdr notNil ifTrue:[ |
|
177 |
"/ MIMETypes defineImageType:'video/x-sgi-movie' suffix:'movie' reader:rdr. |
|
178 |
"/ ]. |
|
179 |
] |
|
5 | 180 |
! |
181 |
||
182 |
"* |
|
183 |
* find out, on what type of display we run |
|
8 | 184 |
* (boy, they should have added this to the x-protocol) |
5 | 185 |
* |
23 | 186 |
* look for a file named 'd_<displayname>.rc' and file it in |
5 | 187 |
*" |
188 |
||
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
189 |
|displayDevice arguments displayVar display displayType isWindowsDisplay s idx| |
5 | 190 |
|
191 |
"find display name from environment or -display argument" |
|
192 |
||
68 | 193 |
arguments := Smalltalk commandLineArguments. |
126 | 194 |
arguments size > 0 ifTrue:[ |
71 | 195 |
idx := arguments indexOf:'-display'. |
196 |
idx ~~ 0 ifTrue:[ |
|
87 | 197 |
displayVar := arguments at:idx + 1. |
126 | 198 |
arguments removeAtIndex:idx+1. |
199 |
arguments removeAtIndex:idx. |
|
71 | 200 |
]. |
201 |
]. |
|
202 |
displayVar isNil ifTrue:[ |
|
5 | 203 |
displayVar := OperatingSystem getEnvironment:'DISPLAY'. |
204 |
]. |
|
302 | 205 |
|
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
206 |
displayDevice := Screen current. |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
207 |
isWindowsDisplay := (displayDevice platformName = 'WIN32'). |
302 | 208 |
|
5 | 209 |
display := displayVar. |
210 |
||
304 | 211 |
(displayVar notNil or:[isWindowsDisplay]) ifTrue:[ |
302 | 212 |
"/ figure out the hostname of the display, |
213 |
"/ to read d_<hostname>.rc |
|
214 |
||
304 | 215 |
(isWindowsDisplay |
216 |
or:[(displayVar startsWith:':0') |
|
8 | 217 |
or:[(displayVar startsWith:'unix:') |
304 | 218 |
or:[displayVar startsWith:'shm:']]]) ifTrue:[ |
8 | 219 |
"running on a local display" |
7 | 220 |
display := OperatingSystem getHostName. |
5 | 221 |
] ifFalse:[ |
7 | 222 |
(displayVar endsWith:':0') ifTrue:[ |
223 |
display := displayVar copyTo:(displayVar size - 2) |
|
224 |
] ifFalse:[ |
|
225 |
(displayVar endsWith:':0.0') ifTrue:[ |
|
226 |
display := displayVar copyTo:(displayVar size - 4) |
|
227 |
] |
|
228 |
] |
|
5 | 229 |
]. |
302 | 230 |
|
231 |
"/ if no host specific info, |
|
308
6e6d557009c7
dont loose windows keyboard setup after image restart
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
232 |
"/ take the display vendor information, |
302 | 233 |
"/ to read d_<vendor>.rc |
234 |
||
235 |
display isNil ifTrue:[ |
|
236 |
isWindowsDisplay ifTrue:[ |
|
304 | 237 |
display := 'win32' |
302 | 238 |
] |
239 |
]. |
|
240 |
||
5 | 241 |
display isNil ifTrue:[ |
195 | 242 |
'display.rc [warning]: cannot determine display I am running on' errorPrintCR. |
5 | 243 |
] ifFalse:[ |
23 | 244 |
" |
245 |
if there is a corresponding file d_<displayName>.rc ... |
|
25 | 246 |
thats the one to take. |
23 | 247 |
" |
7 | 248 |
s := Smalltalk systemFileStreamFor:('d_' , display , '.rc'). |
249 |
s notNil ifTrue:[ |
|
250 |
displayType := display. |
|
251 |
s close. |
|
252 |
]. |
|
8 | 253 |
|
25 | 254 |
" |
255 |
if the X-server gives some info, |
|
256 |
take that as a base |
|
257 |
" |
|
258 |
displayType isNil ifTrue:[ |
|
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
259 |
|serverVendor| |
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
260 |
serverVendor := displayDevice serverVendor. |
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
261 |
|
337 | 262 |
(serverVendor startsWith:'The XFree86 Project, Inc') |
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
263 |
ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
264 |
displayType := 'xfree' |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
265 |
]. |
337 | 266 |
(serverVendor startsWith:'Silicon Graphics') |
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
267 |
ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
268 |
displayType := 'iris' |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
269 |
]. |
337 | 270 |
(serverVendor startsWith:'International Business Machines') |
25 | 271 |
ifTrue:[ |
272 |
displayType := 'aix' |
|
273 |
]. |
|
337 | 274 |
(serverVendor startsWith:'DECWINDOWS Digital Equipment') |
275 |
ifTrue:[ |
|
276 |
displayType := 'dec' |
|
277 |
]. |
|
350 | 278 |
(serverVendor startsWith:'Hummingbird Communications') |
279 |
ifTrue:[ |
|
280 |
displayType := 'exceed' |
|
281 |
]. |
|
25 | 282 |
]. |
283 |
||
284 |
" |
|
285 |
otherwise ... |
|
286 |
" |
|
7 | 287 |
displayType isNil ifTrue:[ |
23 | 288 |
" |
289 |
just an example - stuff can also be hardwired here ... |
|
290 |
" |
|
7 | 291 |
display notNil ifTrue:[ |
298 | 292 |
" |
293 |
if, in your organization, all displays are of the |
|
294 |
same type, |
|
295 |
use something like: |
|
296 |
" |
|
297 |
"/ OperatingSystem getDomainName = '<yourDomain>.de' ifTrue:[ |
|
298 |
"/ displayType := 'myDisplayType' |
|
299 |
"/ ]. |
|
300 |
||
23 | 301 |
" |
302 |
if, in your organization, the display type can |
|
303 |
be deduced from the hostname, |
|
304 |
use something like: |
|
298 | 305 |
(take the exept code below as a guide ...) |
23 | 306 |
" |
8 | 307 |
"/ (display startsWith:'slsv') ifTrue:[ |
23 | 308 |
"/ "all those machines at SEL are suns" |
8 | 309 |
"/ displayType := 'sun' |
310 |
"/ ]. |
|
23 | 311 |
"/ (display startsWith:'frxt') ifTrue:[ |
312 |
"/ "all those machines at AEG are xterminals" |
|
313 |
"/ displayType := 'xterminal' |
|
314 |
"/ ]. |
|
315 |
"/ (display startsWith:'frlx') ifTrue:[ |
|
316 |
"/ "all those machines at AEG are linux boxes with olwm" |
|
317 |
"/ displayType := 'linux_olwm' |
|
318 |
"/ ]. |
|
298 | 319 |
|
350 | 320 |
"/ OperatingSystem getDomainName = 'exept.de' ifTrue:[ |
321 |
"/ (display startsWith:'clam') ifTrue:[ |
|
322 |
"/ displayType := 'next' |
|
323 |
"/ ]. |
|
324 |
"/ (display startsWith:'porty') ifTrue:[ |
|
325 |
"/ displayType := 'portable' |
|
326 |
"/ ]. |
|
327 |
"/ (display startsWith:'blue') ifTrue:[ |
|
328 |
"/ displayType := 'iris' |
|
329 |
"/ ]. |
|
330 |
"/ (display startsWith:'sun') ifTrue:[ |
|
331 |
"/ displayType := 'sun' |
|
332 |
"/ ]. |
|
333 |
"/ (display startsWith:'sol') ifTrue:[ |
|
334 |
"/ displayType := 'sun' |
|
335 |
"/ ]. |
|
336 |
"/ (display startsWith:'hp') ifTrue:[ |
|
337 |
"/ displayType := 'hpux' |
|
338 |
"/ ]. |
|
339 |
"/ ]. |
|
7 | 340 |
]. |
341 |
]. |
|
5 | 342 |
]. |
343 |
||
25 | 344 |
" |
345 |
final fallback: take OperatingSystem if we are running a local |
|
346 |
connection. |
|
26 | 347 |
the used name is one of: |
348 |
d_next.rc |
|
349 |
d_iris.rc |
|
350 |
etc. |
|
25 | 351 |
" |
5 | 352 |
displayType isNil ifTrue:[ |
7 | 353 |
"use type of machine smalltalk is running on as default ..." |
5 | 354 |
|
304 | 355 |
(isWindowsDisplay |
305 | 356 |
or:[(displayVar startsWith:':0') |
357 |
or:[(displayVar startsWith:(OperatingSystem getHostName , ':0'))]]) |
|
304 | 358 |
ifTrue:[ |
7 | 359 |
displayType := OperatingSystem getSystemType. |
360 |
] |
|
5 | 361 |
] |
362 |
]. |
|
363 |
||
364 |
"now, if the above mess found something, we have it in displayType; |
|
365 |
fileIn d_<displayType>.rc" |
|
366 |
||
367 |
displayType notNil ifTrue:[ |
|
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
368 |
((Smalltalk at:#'_ImageDisplayName') ~= displayType |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
369 |
or:[displayDevice ~~ Display]) ifTrue:[ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
370 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
371 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
372 |
"/ mouse-button translation |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
373 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
374 |
"/ (currently, allowed are 1 2 and #paste) |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
375 |
"/ 1 - button1; used to select (i.e. left button) |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
376 |
"/ 2 - button2; pops up a menu (i.e. middle button) |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
377 |
"/ #paste - paste the clipBoard contents |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
378 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
379 |
"/ the following line puts paste onto the right button (as in xterm): |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
380 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
381 |
Screen buttonTranslation:#(1 2 #paste). |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
382 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
383 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
384 |
"/ while that one puts the pop-up menu both on the middle and right buttons: |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
385 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
386 |
Screen buttonTranslation:#(1 2 2). |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
387 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
388 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
389 |
"/ lefthanders can use: |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
390 |
"/ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
391 |
"/ Screen buttonTranslation:#(2 2 1). |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
392 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
393 |
"/ common keyboard setup; |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
394 |
"/ might be changed later by a display-specific |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
395 |
"/ rc file (especially, d_windows does this) |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
396 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
397 |
"/ 'display.rc [info]: reading ''keyboard.rc'' ...' infoPrintCR. |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
398 |
Smalltalk fileIn:'keyboard.rc'. |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
399 |
|
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
400 |
|
120
3cfc91f3bb3c
Set supportsDeepIcons to default value (false), when DisplayType changes
Stefan Vogel <sv@exept.de>
parents:
92
diff
changeset
|
401 |
"Default for supportsDeepIcons is false. |
3cfc91f3bb3c
Set supportsDeepIcons to default value (false), when DisplayType changes
Stefan Vogel <sv@exept.de>
parents:
92
diff
changeset
|
402 |
Set default value only when ImageDisplayName changes |
3cfc91f3bb3c
Set supportsDeepIcons to default value (false), when DisplayType changes
Stefan Vogel <sv@exept.de>
parents:
92
diff
changeset
|
403 |
and d_displayType is called. |
3cfc91f3bb3c
Set supportsDeepIcons to default value (false), when DisplayType changes
Stefan Vogel <sv@exept.de>
parents:
92
diff
changeset
|
404 |
" |
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
405 |
displayDevice supportsDeepIcons:false. |
84 | 406 |
Smalltalk isStandAloneApp ifFalse:[ |
333 | 407 |
('display.rc [info]: ') infoPrint. |
408 |
(Smalltalk getSystemFileName:('d_' , displayType , '.rc')) isNil ifTrue:[ |
|
409 |
'trying' infoPrint. |
|
410 |
] ifFalse:[ |
|
411 |
'reading' infoPrint. |
|
412 |
]. |
|
413 |
(' display setup ''d_' , displayType , '.rc'' ...') infoPrintCR. |
|
84 | 414 |
]. |
308
6e6d557009c7
dont loose windows keyboard setup after image restart
Claus Gittinger <cg@exept.de>
parents:
305
diff
changeset
|
415 |
|
7 | 416 |
Smalltalk fileIn:('d_' , displayType , '.rc') |
5 | 417 |
]. |
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
418 |
displayDevice == Display ifTrue:[ |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
419 |
Smalltalk at:#'_ImageDisplayName' put:displayType |
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
420 |
] |
5 | 421 |
] |
422 |
! |
|
423 |
||
346
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
424 |
"/ |
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
425 |
"/ initialize additional cursor images |
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
426 |
"/ |
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
427 |
Cursor initializeNewCursors. |
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
428 |
! |
3b86a2b1c605
had to move initializeNewCursor back into the rc file (sigh)
Claus Gittinger <cg@exept.de>
parents:
338
diff
changeset
|
429 |
|
5 | 430 |
"* |
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
431 |
* now, this is a nice one: |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
432 |
* |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
433 |
* if the image was saved on a different type of display, ask |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
434 |
* user, if he/she'd like to have the style changed. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
435 |
*" |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
436 |
|depthChange colorChange greyChange reconfigure| |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
437 |
|
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
438 |
depthChange := false. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
439 |
colorChange := false. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
440 |
greyChange := false. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
441 |
|
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
442 |
(Smalltalk includesKey:#'_ImageDisplayDepth') ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
443 |
depthChange := ((Smalltalk at:#'_ImageDisplayDepth') ~~ Display depth) |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
444 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
445 |
(Smalltalk includesKey:#'_ImageDisplayHasColor') ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
446 |
colorChange := ((Smalltalk at:#'_ImageDisplayHasColors') ~~ Display hasColors) |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
447 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
448 |
(Smalltalk includesKey:#'_ImageDisplayHasGreyscales') ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
449 |
greyChange := ((Smalltalk at:#'_ImageDisplayHasGreyscales') ~~ Display hasGreyscales) |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
450 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
451 |
(depthChange or:[colorChange or:[greyChange]]) ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
452 |
reconfigure := self confirm:'Display capabilities have changed |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
453 |
|
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
454 |
Do you want to reconfigure the view style ?'. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
455 |
|
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
456 |
reconfigure ifTrue:[ |
354
bfddecfed2d2
only read any of keyboard.rc d_xxxx.rc if the display changed.
Claus Gittinger <cg@exept.de>
parents:
350
diff
changeset
|
457 |
Screen current knownViews do:[:aView | |
121
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
458 |
aView notNil ifTrue:[ |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
459 |
aView reinitStyle. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
460 |
] |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
461 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
462 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
463 |
]. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
464 |
|
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
465 |
Smalltalk at:#'_ImageDisplayDepth' put:Display depth. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
466 |
Smalltalk at:#'_ImageDisplayHasColors' put:Display hasColors. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
467 |
Smalltalk at:#'_ImageDisplayHasGreyscales' put:Display hasGreyscales. |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
468 |
! |
0974ee733cf4
Move display specific stuff from smalltalk(_r).rc to display.rc.
Stefan Vogel <sv@exept.de>
parents:
120
diff
changeset
|
469 |
|
302 | 470 |
"/ |
471 |
"/ set a default style, if not been set by rc-file |
|
472 |
"/ this is set according the system we are running on. |
|
473 |
"/ Notice: normally, the below is not needed, since the style |
|
474 |
"/ is always set by the d_xxx.rc file. |
|
475 |
"/ Except, when the d_xxx.rc is not present. |
|
476 |
"/ |
|
477 |
||
310 | 478 |
|type wm| |
5 | 479 |
|
480 |
View defaultStyle isNil ifTrue:[ |
|
481 |
type := OperatingSystem getSystemType. |
|
482 |
type = 'sunos' ifTrue:[ |
|
7 | 483 |
View defaultStyle:#openwin |
5 | 484 |
]. |
485 |
type = 'next' ifTrue:[ |
|
7 | 486 |
View defaultStyle:#next |
5 | 487 |
]. |
488 |
type = 'iris' ifTrue:[ |
|
7 | 489 |
View defaultStyle:#iris |
5 | 490 |
]. |
350 | 491 |
type = 'exceed' ifTrue:[ |
492 |
View defaultStyle:#mswindows95 |
|
493 |
]. |
|
5 | 494 |
type = 'linux' ifTrue:[ |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
495 |
"/ if on the local display, and WINDOWMANAGER is fvwm95, |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
496 |
"/ use win95 style as default. |
310 | 497 |
wm := OperatingSystem getEnvironment:'WINDOWMANAGER'. |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
498 |
(((OperatingSystem getEnvironment:'DISPLAY') = ':0') |
310 | 499 |
and:[wm notNil |
500 |
and:[wm endsWith:'fvwm95']]) |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
501 |
ifTrue:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
502 |
View defaultStyle:#mswindows95 |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
503 |
] ifFalse:[ |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
504 |
View defaultStyle:#iris |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
505 |
] |
5 | 506 |
]. |
507 |
type = 'hpux' ifTrue:[ |
|
26 | 508 |
View defaultStyle:#'motif' |
23 | 509 |
]. |
510 |
type = 'ultrix' ifTrue:[ |
|
26 | 511 |
View defaultStyle:#'motif_dec2' |
512 |
]. |
|
513 |
type = 'os2' ifTrue:[ |
|
514 |
View defaultStyle:#'os2' |
|
515 |
]. |
|
214 | 516 |
(type = 'win32') ifTrue:[ |
218 | 517 |
(Number readFromString:((OperatingSystem getSystemInfo) at:#release) onError:0) |
214 | 518 |
>= 4.0 ifTrue:[ |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
231
diff
changeset
|
519 |
View defaultStyle:#'mswindows95' |
214 | 520 |
] ifFalse:[ |
521 |
View defaultStyle:#'mswindows' |
|
522 |
] |
|
26 | 523 |
]. |
298 | 524 |
|
525 |
"/ final fallBack ... |
|
526 |
||
8 | 527 |
View defaultStyle isNil ifTrue:[ |
528 |
Display hasGreyscales ifTrue:[ |
|
529 |
View defaultStyle:#iris |
|
530 |
] ifFalse:[ |
|
531 |
View defaultStyle:#normal |
|
532 |
] |
|
533 |
]. |
|
195 | 534 |
'display.rc [info]: no style set - default to ' infoPrint. |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
121
diff
changeset
|
535 |
View defaultStyle infoPrintCR |
5 | 536 |
] |
537 |
! |
|
302 | 538 |