home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / msdos / programm / 2075 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.7 KB

  1. Xref: sparky alt.msdos.programmer:2075 comp.lang.pascal:4558
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!sjmadsen
  3. Newsgroups: alt.msdos.programmer,comp.lang.pascal
  4. Subject: Stealing INT 09h
  5. Message-ID: <1992Jul26.131309.11896@miavx1.acs.muohio.edu>
  6. From: sjmadsen@miavx1.acs.muohio.edu (Steve Madsen)
  7. Date: 26 Jul 92 13:13:09 -0500
  8. Organization: Miami of Ohio
  9. Lines: 26
  10.  
  11.         I'm interested in writing a keyboard handler by going through INT 09. 
  12. The only problem is that I have just about no idea how to do this.  It's all
  13. part of a "bigger picture."  In the end, I'd like to be able to have a separate
  14. text screen for each task running in a program, and be able to switch between
  15. these tasks (and their text screens) by pressing Alt-Tab, much like MS Windows.
  16.  
  17.         If what I've seen here on the net is correct, the keyboard scan code
  18. will appear at Port[$60].  (Pascal notation, here.)  If it's possible, I'd like
  19. to write the handler so that the Alt-Tab combination is the only one I deal
  20. with.  If the built in handler can handle the keypress, I'd love to just pass
  21. it through to that code instead.  Is this possible?
  22.  
  23.         Finally, is there any way I can take the Alt-Tab keypress, assign it an
  24. unused Pascal "extended keycode" and stuff it in the buffer?  This would be the
  25. ideal solution, as it would allow me to support any other keypresses that
  26. Pascal doesn't currently support, should I need them in the future.
  27.  
  28.         What might make this chore even easier would be if someone has a
  29. Pascal-ready handler already written and would like to refer me to a copy.. :)
  30.  
  31.         Any help would be greatly appreciated!
  32.  
  33. -- 
  34. Steve Madsen
  35. Miami University  Oxford, OH
  36. Internet: sjmadsen@miavx1.acs.muohio.edu
  37.