You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
319 B
Python
17 lines
319 B
Python
# dumb raw input reader for keyboard / barcode scanner
|
|
# TODO: switch this to using evdev - need to sort out permissions
|
|
|
|
import sys
|
|
#from evdev import InputDevice, list_devices
|
|
|
|
#devices = map(InputDevice, list_devices())
|
|
|
|
def main():
|
|
while True:
|
|
cmd = raw_input()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|