🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #104

Stealing INT 09h

#104
From: Steve Madsen
Date: Sun, 26 Jul 1992 18:13
26 lines
1737 bytes
        I'm interested in writing a keyboard handler by going through INT 09. 
The only problem is that I have just about no idea how to do this.  It's all
part of a "bigger picture."  In the end, I'd like to be able to have a separate
text screen for each task running in a program, and be able to switch between
these tasks (and their text screens) by pressing Alt-Tab, much like MS Windows.

        If what I've seen here on the net is correct, the keyboard scan code
will appear at Port[$60].  (Pascal notation, here.)  If it's possible, I'd like
to write the handler so that the Alt-Tab combination is the only one I deal
with.  If the built in handler can handle the keypress, I'd love to just pass
it through to that code instead.  Is this possible?

        Finally, is there any way I can take the Alt-Tab keypress, assign it an
unused Pascal "extended keycode" and stuff it in the buffer?  This would be the
ideal solution, as it would allow me to support any other keypresses that
Pascal doesn't currently support, should I need them in the future.

        What might make this chore even easier would be if someone has a
Pascal-ready handler already written and would like to refer me to a copy.. :)

        Any help would be greatly appreciated!

-- 
Steve Madsen
Miami University  Oxford, OH
Internet: sjmadsen@miavx1.acs.muohio.edu
Technical Details
Message-ID: <1992Jul26.131309.11896@miavx1.acs.muohio.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!sjmadsen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!sjmadsen
Newsgroups: alt.msdos.programmer,comp.lang.pascal
Subject: Stealing INT 09h
Message-ID: <1992Jul26.131309.11896@miavx1.acs.muohio.edu>
From: sjmadsen@miavx1.acs.muohio.edu (Steve Madsen)
Date: 26 Jul 92 13:13:09 -0500
Organization: Miami of Ohio
Lines: 26