Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backspace not working #1

Open
ayoubelouardi opened this issue May 26, 2024 · 1 comment
Open

backspace not working #1

ayoubelouardi opened this issue May 26, 2024 · 1 comment

Comments

@ayoubelouardi
Copy link

the program is ending with this error :
Enter your name: dsaf
Press enter to continue.

Traceback (most recent call last):
File "/home/ayoub/Typing-Test/main.py", line 88, in
wrapper(main)
File "/usr/lib/python3.11/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayoub/Typing-Test/main.py", line 75, in main
wpm_test(stdscr)
File "/home/ayoub/Typing-Test/main.py", line 54, in wpm_test
if ord(key) == 27:
^^^^^^^^
TypeError: ord() expected a character, but string of length 13 found

when i enter a backspace key

@Sahil-B07
Copy link
Owner

Sahil-B07 commented May 26, 2024

Thank you for reporting this issue, @ayoubelouardi
I'll try to resolve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants