backspace (ascii 8)! d'oh!

This commit is contained in:
xereeto 2024-03-09 18:07:09 +00:00
parent 13d852d504
commit d37f0c4a2c
1 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,7 @@ def main():
w.curGuess+=char
w.updateError()
w.placeCursor()
if ord(char)==127: # backspace
if ord(char)==127 or ord(char)==8: # backspace
if len(w.curGuess)>0:
if len(w.curGuess)==5:
put(" ")
@ -256,3 +256,4 @@ finally:
put(blocks[letter-1])
print()
print("\x1b[?25h")