Subject: Non-blocking read in ephem
To: None <port-mac68k@NetBSD.ORG>
From: Aaron Mansheim <a-manshe@runet.edu>
List: port-mac68k
Date: 10/28/1996 09:41:53
I'm trying to port ephem, from volume 14 of comp.sources.misc
(one archive site is ftp.uu.net). It compiles, but when it runs
it immediately displays a "Press any key" screen and will respond
to nothing but ^C. Its io.c file has a couple of options,
described thus in io.c:

 * UNIX: uses termcap for screen management.
 *   USE_NDELAY: does non-blocking tty reads with fcntl(O_NDELAY); otherwise
 *     this is done with ioctl(..,FIONREAD..). Use which ever works on your
 *     system.
 *   USE_TERMIO: use termio.h instead of older generic sgtty.h.
 
So I can compile without USE_TERMIO, but not with it; I can compile
with or without USE_NDELAY, with no apparent difference. I notice
that sgtty.h is considered to be superseded by <sys/ioctl.h> and
there's termios.h but no termio.h. OK, what do I do now?

I'll send the file io.c to anyone who would like to help.
-- 
Aaron Mansheim, MS exp '97, Computational Sciences, Radford University
<mailto:a-manshe@runet.edu> <http://www.runet.edu/~a-manshe/>