🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #26513

Turbo 4.0 readkey problem

#26513
From: Anthony M Lovell
Date: Mon, 18 Apr 1988 16:58
19 lines
929 bytes
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.
Technical Details
Message-ID: <2574@phoenix.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!princeton!phoenix!amlovell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!princeton!phoenix!amlovell
From: amlovell@phoenix.Princeton.EDU (Anthony M Lovell)
Newsgroups: comp.sys.ibm.pc
Subject: Turbo 4.0 readkey problem
Message-ID: <2574@phoenix.Princeton.EDU>
Date: 18 Apr 88 16:58:40 GMT
Organization: Princeton University, NJ
Lines: 19