We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6591a commit 2466c10Copy full SHA for 2466c10
example.py
@@ -0,0 +1,9 @@
1
+import readchar
2
+
3
+if __name__ == '__main__':
4
+ print('start... press q to quit')
5
+ while 1:
6
+ k = readchar.readkey()
7
+ print('you pressed ' + str(k))
8
+ if k == 'q':
9
+ break
0 commit comments