Skip to content
Browse files

Add a couple of extra control characters.

  • Loading branch information...
1 parent cb4bedd commit 33a179b486a526184e44346cad4bcb3ec411a0bf @ali1234 committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 printer.py
View
6 printer.py
@@ -47,6 +47,10 @@ def ttchar(self, c):
return unichr(ord('#'))
elif c == ord('`'):
return unichr(0x2014) # em dash
+ elif c == ord('~'):
+ return unichr(0xf7) # division symbol
+ elif c == 0x7f:
+ return unichr(0xe65f) # rectangle
else:
return unichr(c)
@@ -213,7 +217,7 @@ def do_print(tt):
else:
tt = np.fromstring(tt, dtype=np.uint8)
((m,r),e) = mrag(tt[:2])
- #if r == 0 or r == 30:
+ #if r == 0 or r == 30: # to only print headers etc
print do_print(tt)

0 comments on commit 33a179b

Please sign in to comment.
Something went wrong with that request. Please try again.