Tools and documentation for EPSON TM-T88xx printers (particularly the TM-T88IV)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
dev=/dev/usb/lp0
|
|
|
|
|
|
|
|
# Initialize printer
|
|
|
|
printf '\x1B@' > $dev
|
|
|
|
|
|
|
|
# Set print speed
|
|
|
|
printf '\x1D(K\2\0' > $dev
|
|
|
|
printf '21' > $dev
|
|
|
|
|
|
|
|
# Set head energizing
|
|
|
|
printf '\x1D(K\2\0' > $dev
|
|
|
|
printf 'a4' > $dev # 0-4, or \x80 for automatic, default=0
|