Search code examples
python-3.xuser-inputbarcode-scanner

Is there a way to get input() in python to auto enter?


I am writing a script that uses a barcode scanner to take input. Currently I can scan into the terminal, but then have to press enter to be able to do the next scan. I would like the be able to scan barcodes one after another without pressing enter.

enter image description here Should auto enter here, so that it is ready to take new input

enter image description here


Solution

  • Turns out my scanner is programmable and was able to change the \t at the end to a \n