LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2004, 11:12 AM   #1
jnusa
Member
 
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Rep: Reputation: 15
Char set change`?


Ì've encountered this problem several times. I either display log info with tail or I'm executing code and suddenly the charset seems to change in terminal.

See link for screendump
http://medlem.jubii.dk/jnusa/hp/charset.jpg

Can someone please explain why this happens, and I to avoid it.

Regards Jnusa
 
Old 11-08-2004, 12:21 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
Most line mode terminal drivers respond to escape sequences --- ASCII 27 followed by some characters. If you send ESC and some chars to screen, the screen driver will try to interpret them, rather than display them.

You can sometimes use stty to reset things.

See if your driver supports stty -iexten
 
Old 11-09-2004, 02:01 AM   #3
jnusa
Member
 
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Original Poster
Rep: Reputation: 15
Well, I tried to reset the terminal (just so you know, I'm running the terminal inside X, so am I still using 'terminal driver' as you imply?) with stty -a command, but no luck. When I run the stty command, it looks like my driver supports -iexten. Any other ideas?

Last edited by jnusa; 11-09-2004 at 02:03 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change first char of each line in a file to '0' using /bin/sh Xa! Programming 4 12-12-2010 11:51 PM
is *- -p = '\n' valid? can i set \n char to a pointer? feetyouwell Programming 1 10-01-2004 01:09 AM
invalid conversion from `char' to `const char* bru Programming 6 05-09-2004 03:07 PM
Kbd char change donci Linux - Newbie 2 03-05-2004 01:33 PM
samba codepage/char set problem Clemente Linux - Software 3 11-25-2003 12:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:41 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