Dan, how about isatty(3) and ttyname(3). Those are implemented in all versions of Unix and Linux systems. Their purpose is just that. On 7 Jun 2002 at 16:30, Dan Coutu wrote:
> I do recall from my days working on Ultrix, er DEC OSF/1, I mean Digital > UNIX, no make that Tru64 UNIX, that the more command had some magic in it > that did exactly this. > > It needed to determine the difference between output to a tty versus output > to a pipe because it formatted things like man pages using terminal escape > sequences for bolding and underlining when a tty was the destination and > used things like backspace-overstrike and backspace-underline sequences > when a pipe was the destination (or perhaps just didn't bother with the > special character handling.) -- Jerry Feldman <[EMAIL PROTECTED]> Associate Director Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************
