Skip to content

Commit

Permalink
update monobitbanner2printpapergrid
Browse files Browse the repository at this point in the history
  • Loading branch information
cheznewa committed Sep 16, 2023
1 parent 915b513 commit b3b04ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions monobitbanner2printpapergrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
while True:
s = s + 1
i = sys.stdin.read(1)
if i == "\x2e":
if i == ".":
sys.stdout.write("NEG")
elif i == "\x40":
elif i == "@":
sys.stdout.write("POS")
elif i == "\x0a":
elif i == "\n":
sys.stdout.write("RET")
s = 0
else:
exit(1)
sys.stdout.write(" - %s" %(s))
Expand Down

0 comments on commit b3b04ac

Please sign in to comment.