automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: colorful tests


From: Bob Proulx
Subject: Re: colorful tests
Date: Mon, 5 Nov 2007 09:01:35 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Benoit Sigoure wrote:
> Bob Proulx wrote:
> >For example when capturing output with 'script' all of those
> >escape sequences get in the way.
> 
> If you do this, it will DWYM unless you have a broken implementation  
> of `test -t' (which should be reported so we can mention it in the  
> "limitation of builtins" section of the Autoconf manual).

I don't understand your do-what-you-mean comment.  As I read it it
appears that you are implying that 'script' sessions are not attached
to ttys and that 'test -t' should return false.  But actually they are
attached to ttys and 'test -t' will return true.

'script' is a typical way to save all I/O to and from a terminal to a
file (usually named "typescript") and that includes any escape
sequences that were generated in the output.  Since the input and
output are a tty devices 'test -t' will return true and also the TERM
would be "xterm" or other color capable terminal and therefore color
escape sequences would be generated and would be saved to the file.

Bob

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]