Re: Why does my program change the characters in my shell

From: Alex Sisson (noogie_at_cyberspace.org)
Date: 06/27/03


Date: 27 Jun 2003 05:11:17 -0700

Lorinczy Zsigmond <nospam@for.me> wrote in message news:<3EFA7A8A.2060406@for.me>...
> Andrew Falanga wrote:
> > 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)?
>
> Your terminal is confused or switched into character-graphics mode...
> try "reset" command
> You can trace your program with "strace"

alternatively, you can play a fun game instead; cat /bin/ls and try
and ^C it before its finished cat'ing. sometimes if you're lucky, the
characters will be ok again.



Relevant Pages

  • Re: Why does my program change the characters in my shell
    ... > I'd like to know what the typical reason for this is. ... However, when it gets done puting the data on stdout, the program is ... > characters, just right angled shapes and stuff. ...
    (comp.unix.programmer)
  • Re: Text Box or String > 32K -- Problem?
    ... >lengths on various fields and objects while debugging the code. ... 120K characters will never fit into a text box. ... bridges an old A2 back end data mdb to an A97 front end. ...
    (microsoft.public.access.formscoding)
  • Re: I cannot reliably write the Hex number "83" to a stream
    ... ajmastrean wrote: ... transforms itself into "0x3F". ... For instance, debugging shows that ... Since you're writing text characters through an encoding object, it will in some cases encode the characters different than if you just output pure bytes to begin with. ...
    (microsoft.public.dotnet.languages.csharp)
  • TADOQuery.SQL.Text - unwanted trailing characters
    ... I have a TADOQuery object and am trying to set the SQL.Text property. ... When debugging the ADOQueryUpdate.SQL.Text has some unwanted trailing ... characters: 'update TABLE set COLUMN = VALUE where COLUMN = ...
    (borland.public.delphi.database.ado)
  • RE: Weird TraceListener NewLine problem
    ... debugging, I think the mail message should also contain the characters. ... Steven Cheng ...
    (microsoft.public.dotnet.general)