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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
|
PACKET driver inst 9 (* Autoren : mov/hjh *)
(* Stand : 01.10.88 *)
DEFINES druckerkanal,
treiber einrichten:
LET up = ""3""13""5"",
generator name = "printer.neun.nadel",
description file name = "beschreibungen9",
module file name = "module9";
INT VAR pr channel,
positioning,
quality,
sheet feeder,
service option;
TEXT VAR fonttab name :: "",
driver name :: "";
TEXT VAR inp;
BOOL VAR was esc;
PROC druckerkanal (INT CONST channel) :
serverchannel (channel)
END PROC druckerkanal;
INT PROC druckerkanal : pr channel END PROC druckerkanal;
PROC treiber einrichten:
treiber einrichten (0)
END PROC treiber einrichten;
PROC treiber einrichten (INT CONST service opt):
ask for print channel;
main menu;
IF installed
THEN generate printer spool
ELSE inform about restart
FI.
ask for printchannel:
inits;
page;
headline ("Druckerkanal - Einstellung");
cursor (1, 15);
putline ("Hinweis: Die Druckerkanalnummer kann auch nachträglich mit");
putline (" 'druckerkanal (Kanalnummer)' in der Task """ +
name (myself) + """");
putline (" verändert werden.");
REP
cursor (1, 10);
put (""5"EUMEL-Kanalnummer des Druckerkanals:");
get (pr channel);
disable stop;
druckerkanal (pr channel);
BOOL VAR no error :: NOT is error;
IF is error
THEN cursor (1, 7);
put error;
putline ("Eingabe korrigiert wiederholen!")
FI;
clear error;
enable stop
UNTIL no error PER.
inits:
line;
IF single task
THEN errorstop ("Dieser Treiber arbeitet nur mit Multi-Tasking-EUMEL")
FI;
command dialogue (TRUE);
IF name (myself) <> "PRINTER"
THEN putline ("Diese Task heißt nicht ""PRINTER"", sondern """ +
name (myself) + """ !");
IF yes ("Soll die Task in ""PRINTER"" umbenannt werden ?")
THEN rename myself ("PRINTER")
FI
FI;
INT VAR choice;
service option := service opt.
single task: (pcb (9) AND 255) = 1.
main menu:
BOOL VAR installed :: FALSE;
REP
show main menu;
get choice;
treat choice
UNTIL was esc OR installed PER.
show main menu:
page;
headline ("Hauptmenü 9-Nadel-Drucker");
putline (" 1. Brother");
putline (" 2. Citizen");
putline (" 3. C. Itoh");
putline (" 4. Epson");
putline (" 5. Fujitsu");
putline (" 6. IBM");
putline (" 7. Mannesmann - Tally");
putline (" 8. OKI");
putline (" 9. Schneider");
putline ("10. Star").
get choice:
cursor (1,24);
put ("CR: Eingabe ESC: Installation abbrechen");
ask user (10).
treat choice:
SELECT int (inp) OF
CASE 1: brother menu
CASE 2: citizen menu
CASE 3: c itoh menu
CASE 4: epson menu
CASE 5: fujitsu menu
CASE 6: ibm menu
CASE 7: mannesmann menu
CASE 8: oki menu
CASE 9: schneider menu
CASE 10: star menu
END SELECT.
brother menu:.
citizen menu:
page;
headline ("Citizen - Menü");
putline (" 1. 120-D");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (1);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
citi120d inst
FI.
citi120d inst:
putline ("Citizen 120-D");
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("S1 S2 S3 S4 S5 S6 S7 S8");
putline ("egal OFF OFF egal egal egal egal egal");
show control options ("");
IF all right
THEN get fonttable ("fonttab.7");
generate ("citi120d");
installed := TRUE
FI.
c itoh menu:
page;
headline ("C. Itoh - Menü");
putline (" 1. C 310 CXP");
putline (" 2. C 315 CXP");
putline (" 3. CI-3500");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (3);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
IF choice = 3
THEN ci3500 inst
ELSE c310 inst
FI
FI.
c310 inst:
IF choice = 1
THEN putline ("C. Itoh C 310 CXP")
ELSE putline ("C. Itoh C 315 CXP")
FI;
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- 00: Epson-Modus (02)");
putline ("- 22: nur Wagenrücklauf (01)");
show control options ("std speed, paperfeed");
show material options ("slow, fast, schacht1, schacht2");
show command options ("schacht1, schacht2, schwarz, rot, blau, violett, gelb, orange, grün");
ask for positioning;
ask for paper feed;
IF all right
THEN get fonttable ("fonttab.7.cxp");
generate ("citohc310cxp");
adjust positioning;
adjust paper feed;
IF choice = 2 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ci3500 inst:
putline ("C. Itoh CI-3500");
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- 26: nur Wagenrücklauf (1)");
putline ("- 49: 17,1 Zeichen pro Zoll (17)");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.10");
generate ("citohci3500");
adjust positioning;
installed := TRUE
FI.
epson menu:
page;
headline ("Epson - Menü");
putline (" 1. MX 80 Typ III");
putline (" 2. MX 100 Typ III");
putline (" 3. LX 800");
putline (" 4. LX 1000");
putline (" 5. FX 85");
putline (" 6. FX 105");
putline (" 7. FX 800 oder FX 850");
putline (" 8. FX 1000 oder FX 1050");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (8);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
SELECT choice OF
CASE 1, 2: mx80 inst
CASE 3, 4: lx800 inst
CASE 5, 6: fx85 inst
CASE 7, 8: fx800 inst
END SELECT
FI.
mx80 inst:
IF choice = 1
THEN putline ("Epson MX 80 Typ III")
ELSE putline ("Epson MX 100 Typ III")
FI;
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.1");
generate ("mx");
adjust positioning;
IF choice = 2 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
lx800 inst:
IF choice = 3
THEN putline ("Epson LX 800")
ELSE putline ("Epson LX 1000")
FI;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("SW1-1 SW1-2 SW1-3 SW1-4 SW1-5 SW1-6 SW1-7 SW1-8 SW2-1 SW2-2 SW2-3 SW2-4");
putline ("egal egal egal egal egal egal egal egal egal *) OFF OFF");
putline ("*) ON: Einzelblatteinzug, OFF: kein Einzug");
show control options ("std speed, std quality, std typeface");
show material options ("slow, fast, draft, nlq, roman, sansserif");
show command options ("draft, nlq, roman, sansserif");
ask for positioning;
ask for quality;
IF all right
THEN get fonttable ("fonttab.20.lx");
generate ("lx800");
adjust positioning;
adjust quality;
IF choice = 4 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
fx85 inst:
IF choice = 5
THEN putline ("Epson FX 85")
ELSE putline ("Epson FX 105")
FI;
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("SW1-1 SW1-2 SW1-3 SW1-4 SW1-5 SW1-6 SW1-7 SW1-8 SW2-1 SW2-2 SW2-3 SW2-4");
putline ("egal egal egal ON egal egal egal egal egal egal OFF OFF");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.7");
generate ("fx85");
adjust positioning;
IF choice = 6 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
fx800 inst:
IF choice = 7
THEN putline ("Epson FX 800 oder FX 850")
ELSE putline ("Epson FX 1000 oder FX 1050")
FI;
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("SW1-1 SW1-2 SW1-3 SW1-4 SW1-5 SW1-6 SW1-7 SW1-8 SW2-1 SW2-2 SW2-3 SW2-4");
putline ("egal egal egal ON egal egal egal egal egal *) OFF OFF");
putline ("*) ON: Einzelblatteinzug, OFF: kein Einzug");
show control options ("std quality, std typeface");
show material options ("draft, nlq, roman, sansserif");
show command options ("draft, nlq, roman, sansserif");
ask for quality;
IF all right
THEN get fonttable ("fonttab.20");
generate ("fx800");
adjust quality;
IF choice = 8 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
fujitsu menu:
page;
headline ("Fujitsu - Menü");
putline (" 1. DX 2100");
putline (" 2. DX 2200");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (2);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
SELECT choice OF
CASE 1,2 : dx2100 inst
END SELECT
FI.
dx2100 inst:
IF choice = 1
THEN putline ("Fujitsu DX 2100")
ELSE putline ("Fujitsu DX 2200")
FI;
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("SW1-1 SW1-2 SW1-3 SW1-4 SW1-5 SW1-6 SW1-7 SW1-8 SW2-1 SW2-2 SW2-3 SW2-4");
putline ("egal egal egal egal egal egal egal egal egal *) OFF OFF");
putline ("*) ON: Einzelblatteinzug, OFF: kein Einzug");
show control options ("std speed, paper feed");
show material options ("slow, fast");
show command options ("schwarz, rot, blau, violett, gelb, rot, grün");
ask for positioning;
ask for paper feed;
IF all right
THEN get fonttable ("fonttab.7.fuj");
generate ("fujdx2100");
adjust positioning;
adjust paper feed;
IF choice = 2 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ibm menu:
page;
headline ("IBM - Menü");
putline (" 1. Grafikdrucker (""80 Zeichen breit"")");
putline (" 2. Grafikdrucker (""136 Zeichen breit"")");
putline (" 3. Proprinter/Grafikdrucker II (""80 Zeichen breit"")");
putline (" 4. Proprinter/Grafikdrucker II (""136 Zeichen breit"")");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (4);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
IF choice = 1 OR choice = 2
THEN ibmgp inst
ELSE ibmpp inst
FI
FI.
ibmgp inst:
IF choice = 1
THEN putline ("IBM Grafikdrucker (""80 Zeichen breit"")")
ELSE putline ("IBM Grafikdrucker (""136 Zeichen breit"")")
FI;
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.10");
generate ("ibmgp");
adjust positioning;
IF choice = 2 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ibmpp inst:
IF choice = 3
THEN putline ("IBM Proprinter/Grafikdrucker II (""80 Zeichen breit"")")
ELSE putline ("IBM Proprinter/Grafikdrucker II (""136 Zeichen breit"")")
FI;
show control options ("std speed, std quality");
show material options ("slow, fast, draft, nlq");
show command options ("draft, nlq");
ask for positioning;
ask for quality;
IF all right
THEN get fonttable ("fonttab.10");
generate ("ibmpp");
adjust positioning;
adjust quality;
IF choice = 4 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
mannesmann menu:
page;
headline ("Mannesmann - Tally - Menü");
putline (" 1. MT 230");
putline (" 2. MT 340");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (2);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
IF choice = 1
THEN mt230 inst
ELSE mt340 inst
FI
FI.
mt230 inst:
putline ("Mannesmann-Tally MT 230");
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Der Drucker muß auf den ANSI+EPSON - Modus eingestellt werden.");
putline ("(Siehe: MT 230 Anwenderhandbuch, S. 4-145)");
show control options ("std speed, paperfeed");
show material options ("slow, fast, schacht1, schacht2");
show command options ("schacht1, schacht2, schwarz, magenta, cyan, blau, gelb, rot, grün");
ask for positioning;
ask for paper feed;
IF all right
THEN get fonttable ("fonttab.7");
generate ("mt230");
adjust positioning;
adjust paper feed;
do ("papersize (39.37, 30.48)");
installed := TRUE
FI.
mt340 inst:
putline ("Mannesmann-Tally MT 340");
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Der Drucker muß auf den ANSI+EPSON - Modus eingestellt werden.");
putline ("(Siehe: MT 340 Anwenderhandbuch, S. 4-104)");
show control options ("std speed, paperfeed");
show material options ("slow, fast, schacht1, schacht2");
show command options ("schacht1, schacht2, schwarz, magenta, cyan, blau, gelb, rot, grün");
ask for positioning;
ask for paper feed;
IF all right
THEN get fonttable ("fonttab.7.mt");
generate ("mt340");
adjust positioning;
adjust paper feed;
do ("papersize (39.37, 30.48)");
installed := TRUE
FI.
oki menu:
page;
headline ("OKI - Menü");
putline (" 1. MICROLINE 182 IBM-kompatibel");
putline (" 2. MICROLINE 183 IBM-kompatibel");
putline (" 3. MICROLINE 192 ELITE");
putline (" 4. MICROLINE 193 ELITE");
putline (" 5. MICROLINE 292 ELITE");
putline (" 6. MICROLINE 293 ELITE");
putline (" 7. MICROLINE 294 IBM-kompatibel");
putline (" 8. MICROLINE 320");
putline (" 9. MICROLINE 321");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (9);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
SELECT choice OF
CASE 1, 2: ml182i inst
CASE 3, 4: ml192el inst
CASE 5, 6: ml292el inst
CASE 7 : ml294i inst
CASE 8, 9: ml320 inst
END SELECT
FI.
ml182i inst:
IF choice = 1
THEN putline ("OKI Microline 182 IBM-kompatibel")
ELSE putline ("OKI Microline 183 IBM-kompatibel")
FI;
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("S-1 S-2 S-3 S-4 S-5 S-6 S-7 S-8");
putline ("egal egal OFF egal egal OFF egal OFF");
show control options ("std speed, std quality");
show material options ("slow, fast, draft, nlq");
show command options ("draft, nlq");
ask for positioning;
ask for quality;
IF all right
THEN get fonttable ("fonttab.10");
generate ("okiml182i");
adjust positioning;
adjust quality;
IF choice = 2 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ml192el inst:
IF choice = 3
THEN putline ("OKI Microline 192 ELITE (IBM/EPSON-kompatibel)")
ELSE putline ("OKI Microline 193 ELITE (IBM/EPSON-kompatibel)")
FI;
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- 13: Automatic Line Feed: Nein");
putline ("- 18: Compatibility: EPSON FX");
putline ("(Außerdem: Jumper SP5 in Position 'B')");
show control options ("std speed, paperfeed");
show material options ("slow, fast");
ask for positioning;
ask for paper feed;
IF all right
THEN get fonttable ("fonttab.7");
generate ("okiml192el");
adjust positioning;
adjust paper feed;
IF choice = 4 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ml292el inst:
IF choice = 5
THEN putline ("OKI Microline 292 ELITE (IBM/EPSON-kompatibel)")
ELSE putline ("OKI Microline 293 ELITE (IBM/EPSON-kompatibel)")
FI;
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- Automatic Line Feed: NO");
putline ("- Compatibility: EPSON EX");
putline ("(Außerdem: Jumper SP5 in Position 'B')");
show control options ("paperfeed, std quality, std typeface");
show material options ("draft, nlq, courier, sansserif");
show command options ("draft, nlq, courier, sansserif");
putline ("schwarz, rot, blau, violett, gelb, orange, grün");
ask for paper feed;
ask for quality;
IF all right
THEN get fonttable ("fonttab.20");
generate ("okiml292el");
adjust paper feed;
adjust quality;
IF choice = 6 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
ml294i inst:
putline ("OKI Microline 294 IBM-kompatibel");
putline ("Der Druckertreiber unterstützt auch den Farbdruck mit entsprechendem");
putline ("Farbband.");
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- Proportional Spacing: NO");
putline ("- Automatic Line Feed: NO");
putline ("- Compatibility: PROPRINTER XL");
show control options ("paperfeed, std quality");
show material options ("draft, nlq");
show command options ("draft, nlq, schwarz, rot, blau, violett, gelb, orange, grün");
ask for paper feed;
ask for quality;
IF all right
THEN get fonttable ("fonttab.10");
generate ("okiml294i");
adjust paper feed;
adjust quality;
do ("papersize (34.544, 30.48)");
installed := TRUE
FI.
ml320 inst:
IF choice = 8
THEN putline ("OKI Microline 320 IBM/EPSON-kompatibel")
ELSE putline ("OKI Microline 321 IBM/EPSON-kompatibel")
FI;
line;
putline ("Der Drucker muß so konfiguriert sein (Druckmenü des Druckers):");
putline ("- Automatic Line Feed: Nein");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.7");
generate ("okiml320");
adjust positioning;
IF choice = 9 THEN do ("papersize (34.544, 30.48)") FI;
installed := TRUE
FI.
schneider menu:
page;
headline ("Schneider - Menü");
putline (" 1. DMP 4000");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (1);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
dmp4000 inst
FI.
dmp4000 inst:
putline ("Schneider DMP 4000");
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("DS1-4 übrige Schalter");
putline (" OFF egal");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.7");
generate ("dmp4000");
adjust positioning;
do ("papersize (39.37, 30.48)");
installed := TRUE
FI.
star menu:
page;
headline ("Star - Menü");
putline (" 1. LC-10 (auch LC-10 Colour)");
putline (" 2. NX-15");
putline (" 3. ND-10");
putline (" 4. ND-15");
putline (" 5. NR-10");
putline (" 6. NR-15");
cursor (1,24);
put ("CR: Eingabe ESC: Zurück zum Hauptmenü");
ask user (6);
page;
choice := int (inp);
IF was esc
THEN was esc := FALSE
ELSE headline ("");
putline ("Druckertyp:");
IF choice = 1
THEN lc10 inst
ELIF choice = 2
THEN nx15 inst
ELSE nd10 inst
FI
FI.
lc10 inst:
putline ("Star LC-10 oder LC-10 Colour");
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("S1-1 S1-2 S1-3 S1-4 S1-5 S1-6 S1-7 S1-8 S2-1 S2-2 S2-3 S2-4");
putline ("egal egal egal *) egal EIN egal EIN egal egal egal egal");
putline ("*) AUS: Einzelblatteinzug, EIN: kein Einzug");
show control options ("std quality, std typeface");
show material options ("draft, nlq, courier, sansserif, orator1, orator2");
show command options ("draft, nlq, courier, sansserif, orator1, orator2");
putline ("schwarz, rot, blau, violett, gelb, orange, grün");
ask for quality;
IF all right
THEN get fonttable ("fonttab.20.lc");
generate ("starlc10");
adjust quality;
do ("papersize (21.0, 30.48)");
installed := TRUE
FI.
nx15 inst:
putline ("Star NX-15");
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("S1-4 S1-8 S2-5 übrige Schalter");
putline ("EIN EIN EIN egal");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.7");
generate ("starnx15");
adjust positioning;
do ("papersize (36.0, 30.48)");
installed := TRUE
FI.
nd10 inst:
IF choice = 3
THEN putline ("Star ND-10");
ELIF choice = 4
THEN putline ("Star ND-15");
ELIF choice = 5
THEN putline ("Star NR-10");
ELSE putline ("Star NR-15");
FI;
line;
putline ("Die DIP-Schalter müssen so eingestellt sein:");
putline ("S1-5 S1-6 S2-2 übrige Schalter");
putline ("EIN EIN EIN egal");
show control options ("std speed");
show material options ("slow, fast");
ask for positioning;
IF all right
THEN get fonttable ("fonttab.7");
generate ("starnx15");
adjust positioning;
IF choice = 3 OR choice = 5
THEN do ("papersize (21.0, 30.48)")
ELSE do ("papersize (36.0, 30.48)")
FI;
installed := TRUE
FI.
generate printer spool:
IF service opt = 0
THEN forget (generator name, quiet);
forget (driver name, quiet)
FI;
eumel must advertise;
cursor (1, 10);
putline ("In allen bestehenden Tasks - insbesondere in der Task ""PUBLIC"" - muß");
putline ("die Fonttabelle mit dem Kommando");
line;
putline (" font table (""" + font tab name + """)");
line;
putline ("eingestellt werden!!!");
line (2);
putline ("Hinweis: Dieses Installationsprogramm kann in der Task """ + name (myself) + """");
putline (" mit 'treiber einrichten' aufgerufen werden, wenn ein anderer");
putline (" Drucker eingesetzt werden soll.");
line (2);
put ("Generierung beendet, weiter mit 'SV'");
break (quiet);
do ("spool manager (PROC printer)").
inform about restart:
page;
putline ("Es ist kein Druckertreiber installiert worden!");
line;
putline ("Dieses Installationsprogramm kann in der Task """ + name (myself) + """");
putline ("mit 'treiber einrichten' erneut aufgerufen werden.");
line.
END PROC treiber einrichten;
PROC headline (TEXT CONST header):
cursor (13,1);
putline ("E U M E L - Druckertreiber - Installations - Programm");
cursor (40 - LENGTH header DIV 2, 2);
put (header);
line (2)
END PROC headline;
PROC ask user (INT CONST max choice):
TEXT VAR exit;
inp := "";
REP
cursor (1,23);
IF inp = ""
THEN put ("Ihre Wahl (Nummer eingeben):")
ELSE put ("FEHLER! Eingabe korrigieren:")
FI;
editget (inp, ""27"", "", exit);
was esc := exit = ""27"";
UNTIL was esc OR ok PER.
ok:
int (inp) > 0 AND int (inp) <= max choice AND last conversion ok.
END PROC ask user;
PROC show control options (TEXT CONST options):
line;
putline ("Steuerprozeduren in der Task """ + name (myself) + """:");
write ("papersize, top margin");
IF options <> ""
THEN put (",");
putline (options)
FI
END PROC show control options;
PROC show material options (TEXT CONST options):
line;
putline ("Mögliche Materialwerte (#material(""..."")#):");
putline (options)
END PROC show material options;
PROC show command options (TEXT CONST options):
line;
putline ("Mögliche direkte Druckeranweisungen (#""...""#):");
putline (options)
END PROC show command options;
PROC ask for positioning:
line (2);
putline ("Positionierung in x-Richtung:");
line;
REP out (up);
IF yes ("in Mikroschritten (genauer, aber langsamer)")
THEN positioning := 1; LEAVE ask for positioning
FI;
out (up);
IF yes ("in Blanks (schneller, aber ungenauer)")
THEN positioning := 2; LEAVE ask for positioning
FI;
PER
END PROC ask for positioning;
PROC ask for quality:
line (2);
putline ("Standard - Druckqualität:");
line;
REP out (up);
IF yes ("Draft Quality (schneller, aber nicht so schön)")
THEN quality := 1; LEAVE ask for quality
FI;
out (up);
IF yes ("Near Letter Quality (schöner, aber langsamer)")
THEN quality := 2; LEAVE ask for quality
FI;
PER
END PROC ask for quality;
PROC ask for paper feed:
line (2);
putline ("Einzelblatteinzug:");
line;
REP out (up);
IF yes ("kein Einzelblatteinzug vorhanden")
THEN sheet feeder := 0; LEAVE ask for paper feed
FI;
out (up);
IF yes ("Einzelblatteinzug vorhanden")
THEN sheet feeder := 1; LEAVE ask for paper feed
FI;
PER
END PROC ask for paper feed;
BOOL PROC all right:
line (3);
cursor (1,23);
yes ("Soll der ausgewählte Druckertreiber installiert werden")
END PROC all right;
PROC get fonttable (TEXT CONST name):
fonttab name := name;
from archive ((description file name & module file name & fonttab name)
- all);
fonttable (fonttab name);
command dialogue (FALSE);
save (fonttab name, /"configurator");
IF service option = 0
THEN forget (fonttab name)
FI;
command dialogue (TRUE);
END PROC get fonttable;
PROC from archive (THESAURUS CONST files):
IF highest entry (files) > 0
THEN fetch from archive;
release (archive);
putline ("Archiv abgemeldet !")
FI.
fetch from archive:
THESAURUS VAR thes :: files;
REP
ask for archive;
reserve archive;
fetch (thes / ALL archive, archive);
thes := thes - all
UNTIL highest entry (thes) = 0 PER.
ask for archive:
line;
putline ("Bitte Archiv mit den Dateien");
TEXT VAR buffer;
INT VAR index :: 0;
REP
get (thes, buffer, index);
putline (" " + buffer)
UNTIL index = 0 PER;
putline ("einlegen !");
line;
putline ("Wenn eingelegt: Taste drücken !");
inchar (buffer).
reserve archive :
INT VAR p1, p2;
archive (" "31" ");
disable stop;
list (archive);
IF is error
THEN buffer := errormessage;
p1 := pos (buffer, """", 1 ) + 1;
p2 := pos (buffer, """", p1) - 1;
IF p1 > 0 AND p2 > 0
THEN clear error;
buffer := subtext (buffer, p1, p2);
archive (buffer);
FI;
FI;
enable stop.
END PROC from archive;
THESAURUS OP & (TEXT CONST left, right):
THESAURUS VAR result := empty thesaurus;
insert (result, left);
insert (result, right);
result
END OP &;
THESAURUS OP & (THESAURUS CONST left, TEXT CONST right):
THESAURUS VAR result := left;
insert (result, right);
result
END OP &;
PROC generate (TEXT CONST name):
open files;
read description;
build programme;
insert programme;
forget files.
open files:
line (5);
cursor (1, 20);
putline (""4"Bitte warten !");
putline (" - Der Treiber wird generiert.");
driver name := "printer." + name + "(generiert)";
IF exists (driver name)
THEN forget (driver name, quiet)
FI;
FILE VAR des file :: sequential file (modify, description file name),
mod file :: sequential file (modify, module file name),
driver file :: sequential file (output, driver name).
read description:
to line (des file, 1);
col (des file, 1);
downety (des file, "$" + name + "$");
IF eof (des file)
THEN errorstop ("Beschreibung von """ + name + """ nicht im"13""10"" +
"Descriptions-File enthalten")
FI;
TEXT VAR description :: "",
record;
BOOL VAR done :: FALSE;
read record (des file, record);
record := subtext (record, col (des file) + LENGTH name + 2);
WHILE NOT eof (des file) AND NOT done REP
treat record
PER.
treat record:
INT VAR dollar pos :: pos (record, "$");
IF dollar pos = 0
THEN description CAT compress (record);
down (des file);
read record (des file, record)
ELSE description CAT compress (subtext (record, 1, dollar pos - 1));
col (des file, dollar pos);
done := TRUE;
FI.
build programme:
get module name;
WHILE still modules REP
find module;
transfer module;
get module name
PER.
get module name:
INT VAR semicol pos :: pos (description, ";");
TEXT VAR module name;
IF semicol pos > 0
THEN module name := subtext (description, 1, semicol pos - 1);
description := subtext (description, semicol pos + 1)
ELSE module name := description;
description := ""
FI.
still modules:
module name <> "" OR description <> "".
find module:
to line (mod file, 1);
col (mod file, 1);
downety (mod file, "$" + module name + "$");
IF eof (mod file)
THEN errorstop ("Modul """ + module name + """ nicht im"13""10"" +
"Modul-File enthalten")
FI.
transfer module:
done := FALSE;
read record (mod file, record);
record := subtext (record, col (mod file) + LENGTH module name + 2);
WHILE NOT eof (mod file) AND NOT done REP
transfer record
PER.
transfer record:
dollar pos := pos (record, "$");
IF dollar pos = 0
THEN write (driver file, compress (record));
line (driver file);
down (mod file);
read record (mod file, record)
ELSE write (driver file, compress (subtext (record, 1,
dollar pos - 1)));
col (mod file, dollar pos);
done := TRUE;
cout (line no (mod file))
FI.
insert programme:
IF online
THEN putline (" - Der Treiber wird insertiert.")
FI;
check off;
insert (driver name).
forget files:
IF service option = 0
THEN forget (description file name, quiet);
forget (module file name, quiet)
FI.
END PROC generate;
PROC adjust positioning:
IF positioning = 1
THEN do ("std speed (""slow"")")
ELSE do ("std speed (""fast"")")
FI
END PROC adjust positioning;
PROC adjust quality:
IF quality = 1
THEN do ("std quality (""draft"")")
ELSE do ("std quality (""nlq"")")
FI
END PROC adjust quality;
PROC adjust paper feed:
IF sheet feeder = 1
THEN do ("paper feed (""sheet"")")
ELSE do ("paper feed (""tractor"")")
FI
END PROC adjust paperfeed;
treiber einrichten
END PACKET driver inst 9
|