home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!sgiblab!sgigate!sgi!wdl1!wdl1!dinolt
- From: dinolt@wdl1.wdl.loral.com (George W Dinolt)
- Subject: SIGIO for MiNT
- Message-ID: <DINOLT.92Dec14181235@wdl34.wdl1.wdl.loral.com>
- Sender: news@wdl.loral.com
- Organization: Loral Western Development Laboratories
- Distribution: comp.sys.atari.st.tech
- Date: Tue, 15 Dec 1992 01:12:34 GMT
- Lines: 35
-
- In my attempts to port (gnu)oleo to my Atarist 1040 under MiNT, I
- found I needed to be able to ``handle'' SIGIO. In the recently
- distributed MiNT 96 version 14 (experimental) SIGIO appears in the
- list of signals in .../include/signal.h but no mention of it is made in
- the source. After rummaging around for a bit in the source, I made
- several small changes, one to proc.c (process initialization) and one to
- bios.c (in checkkeys(), which signals SIGIO if there are new and unread
- characters in the io record).
-
- For those who care and don't know, SIGIO is-
- #define SIGIO 23 /* input/output possible signal */
-
- These changes seem to work well for the keyboard. But they are not the
- general solution and don't signal io for any of the other available
- file handles. Does anyone have a better, more general approach for
- sending SIGIO? Might this feature be included in future releases of
- MiNT?
-
- (Gnu)oleo is a ``spread sheet'' program distributed by the Free
- Software Foundation. (Oleo is better than the high priced spread.) As
- delivered, it works with either an X or curses interface. I was able
- to port the curses version easily to (my modified) MiNT by adding two
- lines of code (long _stksize=-1; binmode(1);) to the appropriate
- places. This provides an asynchronous keyboard interface. There is
- supposed to be an interface which doesn't require SIGIO, but it
- doesn't work and it was easier to fix MiNT than to fix that interface.
-
- Many thanks to Eric Smith and the others who have put MiNT and the
- libraries together. You have provided me with a very fine
- environment.
- --
- Regards,
- George Dinolt (dinolt@wdl1.wdl.loral.com, (408) 473-4150)
-
-
-