-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathstart
executable file
·121 lines (97 loc) · 2.62 KB
/
start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/sh
#Defaults.
TVCON=${TVCON:--2BS}
VT52=${VT52:--B -b 9600}
DATAPOINT=${DATAPOINT:--a -B -b 4800}
TEK=${TEK:--b9600}
EXIT=:
trap "" QUIT INT TERM
started() {
EXIT="$EXIT;stop $1 $2"
trap "$EXIT" EXIT
echo "$1 started, pid $2"
}
stop() {
echo -n "Stopping $1... "
kill "$2" 2> /dev/null
sleep 2
kill -9 "$2" 2> /dev/null
echo "OK"
}
gt40() {
(sleep 3; tools/simh/BIN/pdp11 build/pdp10-ka/gt40 >gt40.log 2>&1) &
started GT40 "$!"
}
imlac() {
(sleep 3; cd tools/simlac/imlac; mono bin/Debug/sImlac.exe ../../../build/pdp10-ka/imlac >../../../imlac.log 2>&1) &
started Imlac "$!"
}
tv11() {
(sleep 3; tools/tv11/tv11 -s 4 -p 10011 localhost >tv11.log 2>&1) &
started TV-11 "$!"
}
tvcon() {
(sleep 4; tools/tv11/tvcon/tvcon $TVCON localhost >tvcon.log 2>&1) &
started "TV-console" "$!"
}
xgp11() {
(sleep 3; tools/tv11/xgp11 -s1 -p 10021 localhost >xgp11.log 2>&1) &
started XGP-11 "$!"
}
type340() {
sed -i.old 's/set dpy disabled/set dpy enabled/' \
out/pdp10-ka/run
}
cscope() {
sed -i.old 's/set wcnsls enabled joystick/set wcnsls enabled joystick cscope/' \
out/pdp10-ka/run
}
datapoint() {
(sleep 2; tools/vt05/dp3300 $DATAPOINT telnet localhost 10020 >datapoint.log 2>&1) &
started "Datapoint" "$!"
}
vt52() {
(sleep 2; tools/vt05/vt52 $VT52 telnet localhost 10018 >vt52.log 2>&1) &
started "VT52" "$!"
}
tek() {
(sleep 2; tools/tek4010/tek4010 $TEK telnet localhost 10017 >tek.log 2>&1) &
started "Tektronix" "$!"
}
simh_imlac() {
(sleep 2; tools/simh/BIN/imlac build/pdp10-ka/imlac.simh >imlac.log 2>&1) &
started "Imlac" "$!"
}
chaosnet() {
(sleep 2; tools/cbridge/cbridge -c build/cbridge.conf >cbridge.log 2>&1) &
started "Chaosnet bridge" "$!"
}
help() {
cat <<EOF
This start script takes several command line arguments:
help - Display this help text.
type340 - Enable the Type 340 display.
gt40 - Start a GT40 emulator.
imlac - Start an Imlac PDS-1 emulator.
simh_imlac - Start the SIMH Imlac PDS-1 emulator.
tv11 - Start a TV-11 emulator.
xgp11 - Start an XGP-11 emulator.
tvcon - Start a TV display.
datapoint - Start a Datapoint 3300 emulator.
vt52 - Start a VT52 emulator.
tek - Start a Tektronix 4010 emulator.
cscope - Enable the color scope.
chaosnet - Start a local Chaosnet.
EOF
touch out/pdp10-ka/nohelp
}
sed -i.old -e 's/set dpy enabled/set dpy disabled/' \
-e 's/set wcnsls enabled joystick cscope/set wcnsls enabled joystick/' \
out/pdp10-ka/run
test -f out/pdp10-ka/nohelp || help
while test -n "$1"; do
"$1"
shift
done
tools/sims/BIN/pdp10-ka out/pdp10-ka/run
exit 0