From: "Thomas Harte" Newsgroups: comp.os.msdos.djgpp Subject: Logging data from an interrupt to a file Date: Wed, 17 Jul 2002 18:57:57 +0000 (UTC) Organization: BT Openworld Lines: 16 Message-ID: NNTP-Posting-Host: host213-122-72-64.in-addr.btopenworld.com X-Trace: knossos.btinternet.com 1026932277 17767 213.122.72.64 (17 Jul 2002 18:57:57 GMT) X-Complaints-To: news-complaints AT lists DOT btinternet DOT com NNTP-Posting-Date: Wed, 17 Jul 2002 18:57:57 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I wish to write a program that will log all keyboard events during the execution of another program. This has not proved too taxing to write - I have simply followed the various parts of the DJGPP FAQ on interrupt handlers, chained one to the keyboard interrupt, and logged all activity in that. The second program is then spawn'd and runs perfectly happily. My problem is that although logging to a memory buffer is nice, I would like to log to disc. But I can't find a way to do this, assuming that I don't have the memory to log all keypresses and then write them to disc when the second program terminates. What would I do to achieve this? -Thomas