Delete characters with backspace

This commit is contained in:
Joscha 2017-04-06 13:08:18 +00:00
parent 38ab48d6f8
commit 704ff9b3d1
3 changed files with 20 additions and 14 deletions

View file

@ -64,6 +64,7 @@ class Client():
# edit world
elif i in string.digits + string.ascii_letters + string.punctuation + " ":
self.map_.write(i)
elif i == "\x7f": self.map_.delete()
else: sys.stdout.write(repr(i) + "\n")