I am trying to use a barcode scanner to scan UPC and EAN codes into Vim. Running Vim from the console this works perfectly. But when I'm in X and open Vim in Xterm, the scan results in the ASCII codes for each digit of the barcode. Thus 783254 becomes 055056051050053. I've tried setting isprint in .vimrc, I've tried starting Vim with various switches, -v, -e, -b, -c. I'm getting nowhere and I'm ignorant enough that I don't even know if this is a function of Vim or of Xterm. I'm using Xterm 197, Vim-6.4 and Icewm-1.2.23. Does anyone have an I dea on how to fix this?