[comp.sys.zenith.z100] Turbo Pascal typeahead problems.

GRIEB@LOCKE.HS.WASHINGTON.EDU (CINDY GRIEB) (03/31/88)

I am having a problem with my TURBO PASCAL program when reading from the
keyboard.  In fact I am having two problems... The first is, that the program
ignores all type-ahead (a habit hard to break).  The second is related...
namely that I can't seem to recognize any of the special function keys
(eg. I see the leading <ESC> but not the following character).

I am using TURBO PASCAL v.3.01A for generic MS-DOS on my Z100 (MS-DOS v.3.10).
I have tried playing with the D&G compiler directives to no avail.  I have
been doing my input with statements like Read(c) and Read(KBD,c).

Is there some way to tell either TURBO PASCAL or MS-DOS not to throw away
they "type-ahead" characters?
                                                Hopefully,
                                                Cindy Grieb
                                                IN%"Locke.hs.Washington.edu"
                                                UWALOCKE.bitnet

HALDERMAN@NOSC-TECR.ARPA (Mike) (04/01/88)

Cindy,
	I seem to remember that you have to disable Control-C checking in
Turbo Pascal to be able to use the typeahead and to read escape sequences.

Mike Halderman (Halderman@nosc-tecr.arpa)