home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15864 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  2.5 KB

  1. Path: sparky!uunet!caen!nic.umass.edu!dime!robinson
  2. From: robinson@elux2.cs.umass.edu (RICHARD ROBINSON)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: A couple of questions
  5. Message-ID: <56246@dime.cs.umass.edu>
  6. Date: 15 Nov 92 21:32:18 GMT
  7. References: <55989@dime.cs.umass.edu> <1992Nov13.063457.22216@ucc.su.OZ.AU>
  8. Sender: news@dime.cs.umass.edu
  9. Reply-To: robinson@elux2.cs.umass.edu (RICHARD ROBINSON)
  10. Organization: The Realm of Dread
  11. Lines: 37
  12.  
  13.  
  14. In article <1992Nov13.063457.22216@ucc.su.OZ.AU> willw@extro.ucc.su.OZ.AU (William Waring) writes:
  15. >In article <55989@dime.cs.umass.edu> robinson@elux3.cs.umass.edu (RICHARD ROBINSON) writes:
  16. >>>>
  17. >>Ok, I have a couple of questions that I'd love to find answers to.
  18. >>
  19. >>1. Can a packet sent to DOS be aborted? I send an ACTION_READ to a console,
  20. >>and need to get rid of it when I exit. I just can't ask the user 'please hit
  21. >>a key so I can exit.' And since the exit is based on the termination of
  22. >>another process, there is no way to not send the packet when I'm about to,
  23. >>'cause I don't know when it is going to exit.
  24. >>
  25. >>Failing that, can I trick the console into thinking I typed something?
  26. >
  27. >Are you using the console.device or opening a "CON:" window. If you're
  28. >using CON: and Wb2.0, then you don't have to send a ACTION_READ packet to
  29. >the device. Just do a straight SetMode(FileHandle,1) to turn the console
  30. >window into RAW: mode. Then just do a straight DOS
  31. >Read(FileHandle,DummyChar,1) from the filehandle. You should probably set
  32. >the mode back to CON: when you do that. Other than that, shouldn't have
  33. >any problems... If you're doing it using the console.device then look in
  34. >the RKM: Devices manual for information on how to program the device. It's
  35. >too lengthy to explain here... But I don't think you're using that meathod?
  36.  
  37. Well, I am running under 2.0, but with 1.3 includes (poor college student),
  38. so 2.0 functions that can be called without 2.0 includes are the limit.
  39.  
  40. Anyway, ACTION_READ, not ACTION_SCREEN_MODE... I am doing asynchronous
  41. reads by sending a ACTION_READ packet. Read(filehandle,buffer,x) would freeze
  42. me up. It has nothing to do with the mode of the console. I send a READ,
  43. and when it returns, stuff the character into a pipe. When I am ready
  44. to exit, there is one outstanding read. I need to be able to kill it.
  45.  
  46. --
  47. Dread                      (Richard Robinson, Univ of Mass, Amherst)
  48. dread@titan.ucc.umass.edu          "There is no right, there is only power!"
  49. robinson@elux3.cs.umass.edu             "Kill them, kill them all!" 
  50.