projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Since this thing is on the innerwebs I suppose it should have a
[python_utils.git]
/
input_utils.py
diff --git
a/input_utils.py
b/input_utils.py
index a166d7a4169e56937e8bb63c4398aff1abc52564..77094daaa7a70cd83ebf0e2b5ba0adac311d2b01 100644
(file)
--- a/
input_utils.py
+++ b/
input_utils.py
@@
-1,5
+1,7
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
"""Utilities related to user input."""
import logging
"""Utilities related to user input."""
import logging
@@
-37,7
+39,7
@@
def single_keystroke_response(
try:
while True:
response = readchar.readchar()
try:
while True:
response = readchar.readchar()
- logger.debug(
f'Keystroke: {ord(response)}'
)
+ logger.debug(
'Keystroke: 0x%x', ord(response)
)
if response in valid_responses:
break
if ord(response) in os_special_keystrokes:
if response in valid_responses:
break
if ord(response) in os_special_keystrokes: