# # Epson TM-T88 receipt printer test for lp_server # Copyright (C) 2007 Randy J. Butler # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #!/bin/bash tn=324561 cs=E4136673232 echo "Epson TM-T88 Receipt Printer Test">test echo " ">>test # underline 1 = one dot thick 2 = two dots thick 0 = off echo -e "\033-2Underline 2">>test echo -e "\033-1Underline 1">>test echo -e "\033-0Normal">>test # emphasized echo -e "\033E1">>test echo "Emphasized">>test echo -en "\033E0">>test echo "Normal">>test # double strike echo -e "\033G1">>test echo "double strike">>test echo -en "\033G0">>test echo "Normal">>test echo " " >> test # character font 12X24 = 0 9X17 =1 echo -en "\033M1">>test echo "font 9 x 17">>test echo -en "\033M0">>test echo "font 12 x 24">>test echo " ">>test # clockwise echo -en "\033V1">>test echo "esiwkcolc">>test echo -en "\033V0">>test echo "Normal">>test echo " ">>test # justification echo "Justifcation">>test echo -en "\033a0">>test echo "Left">>test echo -en "\033a1">>test echo "Center">>test echo -en "\033a2">>test echo "Right">>test echo -e "\033a0">>test # reverse printing echo -e "\035B1">>test echo " Reverse printing ">>test echo -en "\035B0">>test echo "Normal">>test # Set barcode height echo -e "\035\150\0100">>test # Barcode human readable text at bottom echo -e "\035\110\002">>test # Barcode human readable text size echo -e "\035\146\001">>test # Center barcode on receipt echo -e "\033a1">>test # barcode 2 of 5 echo -e "\035\153\0005$tn\000">> test # Set barcode width (2 to 6 normal is 3) echo -en "\035\167\0002">> test # barcode 2 of 5 echo -e "\035\153\0005$tn\000">> test # barcode 39 echo -e "\035\153\0004$tn\000">> test echo -e "\035\153\0004$cs\000">> test # Set barcode width to normal echo -en "\035\167\0003">> test # reset justification echo -e "\033a0">>test # Upside-down printing echo -e "\033{1Upside-down printing">>test echo -e "\033{0Normal">>test echo " ">>test # Double Height and width examples echo -e "\033!\020Double Height">>test echo -e "\033!\000Normal">>test echo " ">>test echo -e "\033!\040Double Width">>test echo -e "\033!\000Normal">>test echo " ">>test echo -e "\033!\060Double Height & Width">>test echo -e "\033!\000Normal">>test echo " ">>test # open drawer # ESC p 1 for drawer 1 or ESC p 2 for drawer 2 # Add blank line then cut paper echo -e "\012\012\012\012\012\033\151">>test # Print file to Epson TM-T88 echo "**********************************************" echo "* Edit printer command line for your system. *" echo "**********************************************" read p # Edit the next line for your Epson TM-T88 printer! #lpr -Pptr -oraw test # Remove file test file # rm test