www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/22/01:27:45

Date: Sat, 22 Apr 1995 01:35:20 -0300 (ADT)
From: Bill Davidson <bdavidson AT ra DOT isisnet DOT com>
Subject: Re: TTY Flags
To: babcock AT cfa DOT harvard DOT edu
Cc: bob AT xnet DOT com, djgpp AT sun DOT soe DOT clarkson DOT edu


On Fri, 21 Apr 1995, Bob Babcock wrote:

> Here's how I check whether input has been redirected:
>     Redirected = !(ioctl(0,0) & 0x80);

Correct me if I am wrong, but I don't think djgpp has ioctl() in the 
library.  If it does, please point me at the correct header and library 
files.
If I am right, it is still not that hard to implement, and is probably 
the easiest way to do this (see my previous post).
Bill
bdavidson AT ra DOT isisnet DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019