0
|
1 |
"*
|
|
2 |
* $Header$
|
5
|
3 |
*
|
209
|
4 |
* ST/X startup configuration file:
|
|
5 |
*
|
5
|
6 |
* display configuration - for my portable-pc (gas plasma b&w vga or 8514 color)
|
100
|
7 |
*
|
|
8 |
* You probably dont need that one ...
|
|
9 |
*
|
|
10 |
* Since I run my portably pc with changing VGA cards (dump VGA vs. 8514),
|
|
11 |
* the code below guesses on this depending on the resolution.
|
|
12 |
* The gas plasma display can only display greyscales - although the Xserver
|
|
13 |
* thinks its running on a color display.
|
|
14 |
*
|
0
|
15 |
*"
|
|
16 |
|
5
|
17 |
"*
|
|
18 |
* view style
|
|
19 |
*"
|
7
|
20 |
"*
|
|
21 |
* figure out if running on plasma or color display
|
|
22 |
* (the plasma display works with 640x480 only;
|
|
23 |
* the 8514 has 1024x768 resolution)
|
|
24 |
*/"
|
|
25 |
Display width == 640 ifTrue:[
|
|
26 |
"*
|
|
27 |
* its VGA hardware, but displays only grey
|
|
28 |
*"
|
|
29 |
Display hasColors:false.
|
5
|
30 |
|
7
|
31 |
"*
|
|
32 |
* its a small gas plasma display
|
|
33 |
*"
|
|
34 |
Display heightInMillimeter:160.
|
|
35 |
Display widthInMillimeter:212
|
|
36 |
] ifFalse:[
|
|
37 |
"*
|
|
38 |
* its a 16 inch display
|
|
39 |
*"
|
|
40 |
Display heightInMillimeter:208.
|
|
41 |
Display widthInMillimeter:275
|
|
42 |
].
|
5
|
43 |
|
7
|
44 |
Display depth <= 4 ifTrue:[
|
|
45 |
View defaultStyle:#normal
|
|
46 |
] ifFalse:[
|
|
47 |
View defaultStyle:#iris
|
|
48 |
]
|
0
|
49 |
!
|
|
50 |
|
|
51 |
"*
|
|
52 |
* add some function key definitions ...
|
|
53 |
* (this is of course my private taste)
|
|
54 |
*"
|
|
55 |
|map|
|
|
56 |
|
|
57 |
map := Display keyboardMap.
|
|
58 |
|
|
59 |
map bindValue:#Again to:#F1.
|
|
60 |
|
|
61 |
map bindValue:$[ to:#'Cmd['.
|
|
62 |
map bindValue:$] to:#'Cmd]'.
|
|
63 |
map bindValue:${ to:#'Cmd{'.
|
|
64 |
map bindValue:$} to:#'Cmd}'.
|
|
65 |
map bindValue:$| to:#'Cmd|'.
|
|
66 |
map bindValue:$< to:#'Cmd<'.
|
|
67 |
map bindValue:$> to:#'Cmd>'.
|
|
68 |
map bindValue:$~ to:#'Cmd~'.
|
|
69 |
map bindValue:$@ to:#'Cmd@'.
|
|
70 |
map bindValue:$^ to:#'Cmd^'.
|
|
71 |
map bindValue:$# to:#'Cmd#'.
|
|
72 |
map bindValue:$\ to:#'Cmd\'.
|
|
73 |
|
|
74 |
!
|