nice(3): Return new nice value.
[dragonfly.git] / usr.sbin / lpr / filters.ru / bjc-240.sh.sample
blob1bc907a4202c8836042f182aae4157e74ba31646
1 #!/bin/sh
3 # Canon BJC-240 Setup script
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
10 printf "\033[K\00200\037" | tr 0 "\0"
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
26 printf "\033[K\00200\037" | tr 0 "\0"
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
41 printf "\033[K\00200\037" | tr 0 "\0"
43 cat << EOF3
44 BJLSTART
45 @SetControlMode=LQ
46 BJLEND
47 EOF3
49 printf "\033[K\00200\037" | tr 0 "\0"
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
64 exec /usr/libexec/lpr/ru/koi2alt $*