Mail Archives: djgpp/1994/09/16/21:55:38
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
- Raw text -