budlabs / typiskt

touchtyping training in the terminal
BSD 2-Clause "Simplified" License
28 stars 2 forks source link

[FIX] arrowkey escape codes printed in the prompt #28

Closed budRich closed 2 years ago

budRich commented 2 years ago

fix for #17 [ BUG ] Arrow keys keycodes recognised as raw

this only happened in exercise mode, and only if you had cheated.

added a variable: is_cheating and refactored the way cheat message is printed and cleared. (do not start a nested read thing). it solved the issue.