home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / apple2 / 20104 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.4 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: Pauley@vnet.ibm.com (Paul Benson)
  3. Message-ID: <19920910.121328.487@almaden.ibm.com>
  4. Date: Thu, 10 Sep 92 15:05:47 EDT
  5. Newsgroups: comp.sys.apple2
  6. Subject: Re: Keypress function in pascal?
  7. Organization: IBM Personal Computer Co. - PS/1 Development
  8. Disclaimer: This posting represents the poster's views, not those of IBM
  9. News-Software: UReply 3.0
  10. References: <1992Sep5.170740.54265@qut.edu.au>
  11. Lines: 18
  12.  
  13. In <1992Sep5.170740.54265@qut.edu.au> hollandd@qut.edu.au writes:
  14. >But to the point.  Does there exist in Orca pascal a function that
  15. >will return a keypress without waiting for return to be pressed?
  16. >Not as far as I can tell from the manual?
  17.  
  18. Not that I know of in Pascal (I don't own ORCA/Pascal), but you may want
  19. to look deeper in the manual or in some of the sample codo on the sample
  20. disk.  I know there is a routine in the C manual (but I think that is
  21. just to show off the mini-assembler).  So, you have a few of options.
  22. Learn how to access memory directly in ORCA/Pascal and check the keyboard
  23. latches.  OR write the assembly routine with the miniassembler as in the
  24. C manual and then link it into your Pascal program.  OR use some tool
  25. calls (Either GetChar or thru the event manager).  Ask someone with
  26. ORCA/Pascal as to which USING directive to use for the text toolset and
  27. how to actually call GetChar should you wish to use that.
  28.  
  29. Pauley
  30. GEnie: P.Benson1
  31.