ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/18/10:04:27

To: Xavier DOT Leroy AT inria DOT fr
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, sl25 AT cus DOT cam DOT ac DOT uk
Subject: Re: Polling for ctrl-C
Date: Tue, 18 Aug 92 14:29:03 +0100
From: "S. Linton" <sl25 AT cus DOT cam DOT ac DOT uk>

I thknk Ctrl-C trapping is available in recent versions of DJGPP,
though I'm not sure what your options are, it doesn't seem to be
documented anywhere (hint!).

You can always solve your problem, however by simply reading the
keyboard each time you would have polled your flag and checking for
control-C. If you can't process all input at this time then you can
copy the characters you read into a buffer and get them out later
(thus implementing enhanced type-ahead at the same time).

	Steve Linton

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019