[comp.sys.ibm.pc] Turbo 4.0 readkey problem

amlovell@phoenix.Princeton.EDU (Anthony M Lovell) (04/18/88)

Has anyone encountered a problem with Turbo Pascal 4.0's readkey
function?  We have had uneven performance on a Compaq in that it
sometimes appears to leave the character it reads in the keystroke
buffer.

ie:
  ch := readkey;
  readln(stringvar);

in some instances, this code produces behavior wherein the computer
never stops to read stringvar, but assigns it the character ch.

Does anyone know what the problem is, or how to elegantly solve it?

-- 
amlovell@phoenix.princeton.edu     ...since 1963.

disclaimer:
These are MY opinions.  You only WISH they were yours.