home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!willw
- From: willw@extro.ucc.su.OZ.AU (William Waring)
- Subject: Re: A couple of questions
- Message-ID: <1992Nov13.063457.22216@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: /etc/organization
- References: <55989@dime.cs.umass.edu>
- Date: Fri, 13 Nov 1992 06:34:57 GMT
- Lines: 29
-
- In article <55989@dime.cs.umass.edu> robinson@elux3.cs.umass.edu (RICHARD ROBINSON) writes:
- >
- >Ok, I have a couple of questions that I'd love to find answers to.
- >
- >1. Can a packet sent to DOS be aborted? I send an ACTION_READ to a console,
- >and need to get rid of it when I exit. I just can't ask the user 'please hit
- >a key so I can exit.' And since the exit is based on the termination of
- >another process, there is no way to not send the packet when I'm about to,
- >'cause I don't know when it is going to exit.
- >
- >Failing that, can I trick the console into thinking I typed something?
- >
- >2. Is there any way to find out how many characters can be read from
- >a console? Transferring characters to and from a pipe one at a time is
- >pathetically slow.
-
- Are you using the console.device or opening a "CON:" window. If you're
- using CON: and Wb2.0, then you don't have to send a ACTION_READ packet to
- the device. Just do a straight SetMode(FileHandle,1) to turn the console
- window into RAW: mode. Then just do a straight DOS
- Read(FileHandle,DummyChar,1) from the filehandle. You should probably set
- the mode back to CON: when you do that. Other than that, shouldn't have
- any problems... If you're doing it using the console.device then look in
- the RKM: Devices manual for information on how to program the device. It's
- too lengthy to explain here... But I don't think you're using that meathod?
-
- Regards,
- Eddie
-
-