curses interface for using the barcode scanner