[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: escape sequences in test output -- colors (new snapshot)
From: |
Bob Proulx |
Subject: |
Re: escape sequences in test output -- colors (new snapshot) |
Date: |
Mon, 29 Oct 2007 02:20:17 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Jim Meyering wrote:
> Or just determine why the test for whether to enable colors
> isn't working for the buildbot? In build-aux/check.mk, it does this:
>
> if test -t 1; then
> red=...
The 'test -t 1' does not check the value of TERM. It simply assumes a
vt220 terminal and assigns escape sequences without regard to terminal
type. It really should only do this when there is a compatible $TERM
present.
The buildbot is effectively a 'script' session. The output is a tty.
All of the output is saved to a file. But TERM is not set. It is a
dumb terminal.
Bob
Re: new snapshot (rm fixes and new program: mktemp), Bauke Jan Douma, 2007/10/08
Re: new snapshot (rm fixes and new program: mktemp), Bauke Jan Douma, 2007/10/08
Re: new snapshot (rm fixes and new program: mktemp), Bauke Jan Douma, 2007/10/08