from escpos.printer import File p=File('/dev/usb/lp0') p.text('abc') p.text('abc') p.text('abc') p.text('abc\n') p.text('abc\n') p.text('abc\n') p.text('abc\n') p.cut() p._raw(bytearray([27, ord('C'), 0])) #sudo -E python3 trykk1.py