From d37f0c4a2c990f2fb18e93a401d07b3da2fccb7d Mon Sep 17 00:00:00 2001 From: xereeto Date: Sat, 9 Mar 2024 18:07:09 +0000 Subject: [PATCH] backspace (ascii 8)! d'oh! --- wordle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wordle.py b/wordle.py index 828f1b5..97597bb 100644 --- a/wordle.py +++ b/wordle.py @@ -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") +