Borland C/Turbo C/DJGPP: instead of setcbrk(), do a kbhit() check.
Let's use less sloppy logic, shall we?