Chaostreff-Potsdam / erika3004

19 stars 5 forks source link

Bug: Printing stops early #68

Open sirexeclp opened 4 years ago

sirexeclp commented 4 years ago
from erika.erika import Erika
with Erika("/dev/ttyAMA0") as e:
    import sys
    for line in sys.stdin:
        e.print_ascii(line)
        print(line, end="")

import time
time.sleep(2)

cat rechnung.txt | python3 erika-print.py

rechnung.txt

#----------#
#          #
#          #
#----------#

Erika only prints:

#----------#
#          #
#          #
#--