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.)

I'd check the source for more to see what you can learn there.

-- 

Dan Coutu
Managing Director
Snowy Owl Internet Consulting, LLC
http://www.snowy-owl.com/
Mobile: 603-759-3885
Fax: 603-673-6676




*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to