LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2006, 07:56 PM   #1
Smax
LQ Newbie
 
Registered: Apr 2006
Location: East Texas
Posts: 19

Rep: Reputation: 0
Vim, Xterm, and ASCII


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 instead of the actual numbers. 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 idea on how to fix this?

Last edited by Smax; 04-17-2006 at 09:09 PM.
 
Old 04-18-2006, 08:14 PM   #2
Smax
LQ Newbie
 
Registered: Apr 2006
Location: East Texas
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, it's not Vim. The same thing happens when I scan at the bash prompt - fine in terminal mode, ascii codes replacing characters in Xterm.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
ASCII C Help, Please InvisibleSniper Programming 33 10-10-2005 10:25 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
ASCII help My_World Linux - General 1 04-13-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration