Delete characters with backspace
This commit is contained in:
parent
38ab48d6f8
commit
704ff9b3d1
3 changed files with 20 additions and 14 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue