I have a magnetic card reader that is USB. When swiped it will dump the value of the card as a string wherever the cursor is blinking. I want to be able to poll and capture the swipe without having to point the cursor at a text input.
I can capture the value in the terminal but I am hoping to suppress the terminal and simply capture the swipe whenever the card comes through. Any thoughts on how to go about would be appreciated.