From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Why don't printf work properly with getch ()? Date: Wed, 08 Oct 1997 11:20:03 -0700 Organization: Alcyone Systems Lines: 16 Message-ID: <343BCED3.40BF390D@alcyone.com> References: <01bcd38e$b9e2da40$0b0867d1 AT default> <19971008135201 DOT JAA16622 AT ladder02 DOT news DOT aol DOT com> <343BA87F DOT 1A3B AT ic DOT ac DOT uk> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Simon Harris wrote: > Again, fix with fflush(stdout) after the printf(). The more prudent action would be to use only stdio or only conio functions, not a mixture of both -- since it is the mixture that is causing strange behavior. Especially since there's a cprintf in conio, this makes it pretty easy to just use conio-only functions. -- 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