delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/19/15:52:58

From: James MacDonald <trill AT Xnetbook DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: INKEY in DJGPP? (Timed input function?)
Date: Thu, 19 Jun 1997 16:13:18 +0100
Organization: Trills and Technologies
Distribution: world
Message-ID: <5OUMnDAOyUqzEwjg@netbook.demon.co.uk>
NNTP-Posting-Host: netbook.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm writing an access control program that prints a message on the
screen, and then after that should wait for either no key press or a key
press of F1. At the moment, I'm using INT 16h to read the keys, but
these make the program stop until a key is pressed. 

Is it possible to have a three second delay in which time F1 can be
pressed (like INKEY/INKEY$ in BBC BASIC)?

Please tell me how :)
I have Allegro 2.2 + WIP, but I'd prefer a straight C solution because I
don't want 300K executables (and yes, I know about DJP!)
-- 
Revised anti-spam in use : remove X to reply - 
'Xnetbook' becomes 'netbook'

Anti-spam thermonuclear warheads cheap at only $300!

- Raw text -


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