[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-devel
Subject:    Re: Terminal escape sequences from configure/make test
From:       Hallvard B Furuseth <h.b.furuseth () usit ! uio ! no>
Date:       2005-10-15 18:24:52
Message-ID: hbf.20051015chzk () bombur ! uio ! no
[Download RAW message or body]

Howard Chu writes:
> A quick survey of HPUX, AIX, and Solaris show they all support it; it 
> has probably been around for quite some time. I don't have my 4.2BSD 
> manuals handy at the moment but I'd bet it was supported there too.

I realized my suggestion was nonsense just after posting anyway:-)
2>/dev/null just decides that nobody sees an error message.

This one should be safe:

  TB= TN=
  if test -t 1 2>/dev/null || test -n "`test -t 1 2>&1`" ; then
    TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
    TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
  fi

Sets the terminal escapes if test -t 1 returns failure and no output.

-- 
Hallvard
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic