Subject: Re: printf? To: early AT finite DOT nrl DOT navy DOT mil (Derrick Early) Date: Fri, 16 Sep 1994 15:27:53 -0600 (CDT) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu From: mcastle AT umr DOT edu (Mike Castle) Amazingly enough Derrick Early said: > > I trying to display a prompt so that the cursor stays at the end of the > prompt. When I try > > printf("\nThis is a prompt: "); > > nothing appears until after I strike a key that is caught by getche. > I tried this on my workstation here at work and it works as expected. Would the following work better? printf("\nThis is a prompt: "); fflush(stdout); Maybe flushing works different on your workstation than it does using DJGPP? mrc -- Mike Castle .-=NEXUS=-. Life is like a clock: You can work constantly mcastle AT cs DOT umr DOT edu and be right all the time, or not work at all mcastle AT umr DOT edu and be right at least twice a day. -- mrc We are all of us living in the shadow of Manhattan. -- Watchmen