Re: Why does my program change the characters in my shell
From: Andrew Gabriel (andrew_at_cucumber.demon.co.uk)
Date: 06/26/03
- Next message: David Schwartz: "Re: unusual behaviour of program under linux...."
- Previous message: KJK::Hyperion: "lex+yacc parser for HTTP"
- In reply to: Andrew Falanga: "Why does my program change the characters in my shell"
- Next in thread: Stephane CHAZELAS: "Re: Why does my program change the characters in my shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Jun 2003 08:28:23 GMT
In article <3EFA632F.2FC168CD@icehouse.net>,
Andrew Falanga <excalibur@icehouse.net> writes:
> Hello,
>
> I'd like to know what the typical reason for this is. I'm debugging a
> program I've written, and to make sure I'm using sscanf( ) and strcpy(
> ). However, when it gets done puting the data on stdout, the program is
> supposed to prompt me for action.
>
> What is displayed is really weird text. No English alphabetic
> characters, just right angled shapes and stuff. What normally alters
> the character set of stdout (don't know if I worded that correctly)?
Run the program with the output sent to a file, and then read
the file with vi or cat -v (or pipe output through cat -v) and
you will likely see you are generating non-printing charaters.
You are probably hitting upon the sequence to put the terminal
into block graphics mode.
-- Andrew Gabriel Consultant Software Engineer
- Next message: David Schwartz: "Re: unusual behaviour of program under linux...."
- Previous message: KJK::Hyperion: "lex+yacc parser for HTTP"
- In reply to: Andrew Falanga: "Why does my program change the characters in my shell"
- Next in thread: Stephane CHAZELAS: "Re: Why does my program change the characters in my shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|