cslarsen / wpm

Typeracer-like console app for measuring your WPM
GNU Affero General Public License v3.0
322 stars 48 forks source link

Request for the use of Ctrl key #14

Closed cevhyruz closed 6 years ago

cevhyruz commented 6 years ago

I would like to request a feature, if its possible to add the use of ctrl key. like when I'm correcting a typo, I prefer doing it using ctrl + backspace instead of backspace along all the way to the wrong character. is it possible or is it gonna conflict with the terminal keybindings?

cslarsen commented 6 years ago

I'll have a look. It's something I'd like as well, but many key combos are difficult or impossible to read in the terminal.

cslarsen commented 6 years ago

OK, so I'm gonna need help with this one. If anyone can help me detect CTRL+keys (especially CTRL+backspace) using the default curses library with CPython, please let me know how. I find curses to be quite flaky to be honest, and not a very easy API to work with.

cslarsen commented 6 years ago

It seems it's possible to detect ALT+BACKSPACE, but only on some terminals. I wouldn't wait for this feature. I only want to add stuff that I absolutely know works.

Now that I have a config file, I may be able to hack in such a feature for the ones it works for, though. It does require a little bit of finicky code changes, though. If you're up to it, please give it a go!

cslarsen commented 6 years ago

I can't see any way to fix this, so unfortunately I'll just close it.