Subject: Re: Non-blocking read in ephem
To: Aaron Mansheim <a-manshe@runet.edu>
From: None <david@mono.org>
List: port-mac68k
Date: 10/28/1996 18:51:51
	What happens if you try compiling with USE_TERMIO, but change the
	include from termio.h to termios.h?

		David/abs	david@{mono.org,southern.com,mhm-internet.com}

System Manager: Southern Studios Ltd, PO Box 59, London N22 1AR.
  System Admin: MHM Internet, 14 Barley Mow Passage, Chiswick, London W4 4PH.
         SysOP: Monochrome, Largest UK Internet BBS - 'telnet mono.org'.

On Mon, 28 Oct 1996, Aaron Mansheim wrote:

> 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/>
>