]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/lpr/filters.ru/bjc-240.sh.sample
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / lpr / filters.ru / bjc-240.sh.sample
1 #!/bin/sh
2 #
3 # Canon BJC-240 Setup script
4 #
5 # Settings are:
6 # Epson LQ emulation, A4, Code Page 866, 66 lines, Roman font, Smoothing,
7 # HQ mode, no CR translation, power off in 10min, auto power on
8 #
9
10 printf "\033[K\00200\037" | tr 0 "\0"
11
12 cat << EOF1
13 BJLSTART
14 ControlMode=BJ
15 Font=Roman
16 PageLength=12
17 CodePage=866
18 AutoLF=Off
19 TextScaleMode=On
20 AutoCR=Off
21 CharacterSet=Set2
22 AGM=Off
23 BJLEND
24 EOF1
25
26 printf "\033[K\00200\037" | tr 0 "\0"
27
28 cat << EOF2
29 BJLSTART
30 ControlMode=LQ
31 Font=Roman
32 PageLength=12
33 CodePage=866
34 AutoLF=Off
35 TextScaleMode=On
36 CharacterSet=Graphics
37 International=USA
38 BJLEND
39 EOF2
40
41 printf "\033[K\00200\037" | tr 0 "\0"
42
43 cat << EOF3
44 BJLSTART
45 @SetControlMode=LQ
46 BJLEND
47 EOF3
48
49 printf "\033[K\00200\037" | tr 0 "\0"
50
51 cat << EOF4
52 BJLSTART
53 ControlMode=Common
54 PrintMode=HQ
55 Reduction=Off
56 Smoothing=On
57 PaperSelect=A4
58 I/D-Buffer=Input
59 AutoPowerOff=10
60 AutoPowerOn=Enable
61 BJLEND
62 EOF4
63
64 exec /usr/libexec/lpr/ru/koi2alt $*