home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:5302 comp.sys.sun.misc:5286
- Newsgroups: comp.unix.programmer,comp.sys.sun.misc
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!bosman
- From: bosman@fwi.uva.nl (Cor Bosman)
- Subject: Sun KeyBoard help wanted
- Message-ID: <1992Nov16.183544.24814@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: gene.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- Date: Mon, 16 Nov 1992 18:35:44 GMT
- Lines: 22
-
- Im trying to code something, but im not very succesfull with it sofar.
- Here's my problem:
-
- I want to get keyboard events (mainly keypresses) from the keyboard
- without disturbing other processes. So, whatever process I run
- (this includes processes that want input, like 'vi') my program
- needs to get all keypresses and perform some action with it.
- This, while leaving other processes unharmed. So for example
- 'vi' doesnt even notice my other process is reading the characters
- too. Is this possible?
- Sofar ive played a bit with opening /dev/kbd. Then read() from it.
- This doesnt work. Somehow it has to be possible to read chars
- without other processes being disturbed by it.
- Id appreciate any help/info. Maybe someone knows some code that
- already does this (or partly). Or has some other general hints.
-
- Cor Bosman
- --
- |bosman@fwi.uva.nl_ // | Honest Officer , had I known my health |
- |-----------------\\ //AMIGA | stood in jeopardy I would never had lit one.|
- | PE no.1 \\/ | -MAXIM (of the Hells Angels)- |
- |__________ Quickly Scotty,beam me up.There is no ox..y..ge..._____________|
-