You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On windows 7 64 bit running python 32, none of the function keys, arrow keys or mod keys are read.
So f1 doesn't even trigger anything, up arrow doesn't trigger anything and ctrl doesn't trigger anything.
The text was updated successfully, but these errors were encountered:
OK, I have done some research and so what I can do is:
in readchar just have ascii values, but in readkey return "up" "down" "escape" "return" "tab" "backspace"...
The current Windows readchar implementation is over complex.
I will submit a request for a better implementation.
I just would like to make sure that I am following what is happening on Linux and the mac so I can do something like:
fromreadcharimportreadkeywhileTrue:
key=readkey()
ifkey=="return":
print("Hello world")
elifkey=="escape":
breakelifkey=="a":
print("This is an a")
elifkey=="up":
print("This is an up arrow")
OK, I have modified the code quite a lot, but now it looks much easier to use and everything in Windows returns like it should.
I don't have Linux right now, so have not checked if everything matches. Checkout my code: Here
It is in several commits, so let me know your thoughts.
On windows 7 64 bit running python 32, none of the function keys, arrow keys or mod keys are read.
So f1 doesn't even trigger anything, up arrow doesn't trigger anything and ctrl doesn't trigger anything.
The text was updated successfully, but these errors were encountered: