delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/10/14:01:41

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why don't printf work properly with getch ()?
Date: Wed, 08 Oct 1997 11:19:00 -0700
Organization: Alcyone Systems
Lines: 27
Message-ID: <343BCE94.1C1D8946@alcyone.com>
References: <01bcd38e$b9e2da40$0b0867d1 AT default> <19971008135201 DOT JAA16622 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Br5an wrote:

>      This may all be true.  With other compilers I've shamelessly
> mixed stdio
>  and conio functions without a hitch.

That's by coincidence; DJGPP is not incorrect in exhibiting this
behavior.  It's the fault of the programmer in using two incompatible
screen libraries.  The same is true of mixing others, such as stdio and
curses, or conio and curses.  They are all unaware of what the others
are doing, so unexpected behavior will often result.

> But in the example above, could
> it just
>  be another example of buffered output most of us here (at
> msdos.djgpp) have
>  read so much about lately?

In a word, yes.

-- 
          Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                        Alcyone Systems / http://www.alcyone.com/max/
   San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                      \
   "After each war there is a little / less democracy to save."
                                    / Brooks Atkinson

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019