1998-02-04 12:00:46 +00:00
|
|
|
#!/bin/sh
|
1998-02-04 13:03:57 +00:00
|
|
|
#
|
|
|
|
# Canon BJC-240 Setup script
|
|
|
|
#
|
|
|
|
# Settings are:
|
|
|
|
# Epson LQ emulation, A4, Code Page 866, 66 lines, Roman font, Smoothing,
|
|
|
|
# HQ mode, no CR translation, power off in 10min, auto power on
|
|
|
|
#
|
1998-02-04 12:00:46 +00:00
|
|
|
|
|
|
|
printf "\033[K\00200\037" | tr 0 "\0"
|
|
|
|
|
|
|
|
cat << EOF1
|
|
|
|
BJLSTART
|
|
|
|
ControlMode=BJ
|
|
|
|
Font=Roman
|
|
|
|
PageLength=12
|
|
|
|
CodePage=866
|
|
|
|
AutoLF=Off
|
1998-02-04 13:03:57 +00:00
|
|
|
TextScaleMode=On
|
1998-02-04 12:00:46 +00:00
|
|
|
AutoCR=Off
|
|
|
|
CharacterSet=Set2
|
|
|
|
AGM=Off
|
|
|
|
BJLEND
|
|
|
|
EOF1
|
|
|
|
|
|
|
|
printf "\033[K\00200\037" | tr 0 "\0"
|
|
|
|
|
|
|
|
cat << EOF2
|
|
|
|
BJLSTART
|
|
|
|
ControlMode=LQ
|
|
|
|
Font=Roman
|
|
|
|
PageLength=12
|
|
|
|
CodePage=866
|
|
|
|
AutoLF=Off
|
1998-02-04 13:03:57 +00:00
|
|
|
TextScaleMode=On
|
1998-02-04 12:00:46 +00:00
|
|
|
CharacterSet=Graphics
|
|
|
|
International=USA
|
|
|
|
BJLEND
|
|
|
|
EOF2
|
|
|
|
|
|
|
|
printf "\033[K\00200\037" | tr 0 "\0"
|
|
|
|
|
|
|
|
cat << EOF3
|
|
|
|
BJLSTART
|
|
|
|
@SetControlMode=LQ
|
|
|
|
BJLEND
|
|
|
|
EOF3
|
|
|
|
|
|
|
|
printf "\033[K\00200\037" | tr 0 "\0"
|
|
|
|
|
|
|
|
cat << EOF4
|
|
|
|
BJLSTART
|
|
|
|
ControlMode=Common
|
|
|
|
PrintMode=HQ
|
1998-02-04 13:03:57 +00:00
|
|
|
Reduction=Off
|
1998-02-04 12:00:46 +00:00
|
|
|
Smoothing=On
|
|
|
|
PaperSelect=A4
|
|
|
|
I/D-Buffer=Input
|
|
|
|
AutoPowerOff=10
|
|
|
|
AutoPowerOn=Enable
|
|
|
|
BJLEND
|
|
|
|
EOF4
|
|
|
|
|
|
|
|
exec /usr/libexec/lpr/ru/koi2alt $*
|