Article View: comp.sys.ibm.pc.programmer
Article #827Re: Avoiding ^C
From: Doug Stevens
Date: Mon, 02 Jul 1990 17:09
Date: Mon, 02 Jul 1990 17:09
11 lines
797 bytes
797 bytes
Here is a partial solution from Ge van Geldorp (thanks to Pat McCarthy and Clayton E. Cramer for summarizing this problem before): > It turns out that the ^C echoed by DOS is written to stdout. Thus, if > you don't need stdout, you can redirect it to nul from within your > program (using dup2()), thereby sending the ^C to the bit-bucket. > Hope this helps. > > Ge van Geldorp > ge@dutlru2.tudelft.nl > ...!uunet!hp4nl!dutlru2.tudelft.nl!ge
Technical Details
Message-ID:
<5878@videovax.tv.tek.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!videovax!dougsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!videovax!dougs From: dougs@videovax.tv.tek.com (Doug Stevens) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: Avoiding ^C Summary: Supressing ^C Message-ID: <5878@videovax.tv.tek.com> Date: 2 Jul 90 17:09:43 GMT Organization: Tektronix TV Measurement Systems, Beaverton OR Lines: 11