Mail Archives: djgpp/1998/04/25/00:46:48
Pierre A. Dagenais wrote:
>
> #ifdef TURBOC
> k.i = bioskey(0);
> #endif
>
> I have a program that compile ok with turboc but acts very strange
> when compiled with DJGPP. The display waits for the enter key to be
> pressed before it shows the prompt. Does anyone know of a difference
> between tc bioskey and djgpp bioskey functions. How to modify so it
> runs as expected?
Read chapter 9.4 of the DJGPP Frequently Asked Questions list. You're
mixing stdio and conio functions, which is never guaranteed to work as
expected. The fact that it does on Turbo C is a coincidence.
For a quick and dirty solution, insert fflush(stdout) after every stdio
output call that is followed by a conio function.
--
---------------------------------------------------------------------
| John M. Aldrich | "A generation which ignores history |
| aka Fighteer I | has no past--and no future." |
| mailto:fighteer AT cs DOT com | |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -