inkey some kind of strange, yes...
just try this:
Code:
var ikr;
do
{
ikr = inkey(console_in_buf);
} while(ikr != 27);


This is because of the scheduler. The line gets executed before the inkey starts working...
so your while loop never gets executed correctly
but if you unpack the single line into multiple lines inkey works correctly


Visit my site: www.masterq32.de