www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21266] New: Improve TTY and color detection in build.d


          Issue ID: 21266
           Summary: Improve TTY and color detection in build.d
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greeenify gmail.com

tl;dr: currently build.d always uses -color=on, but this doesn't work on all
CIs (e.g. not DAutoTest)

The problem is that some CIs do support these coloring sequences and build.d
used to be called via the Makefiles, but I presume people still wanted to have
colored log output locally.
Anyhow, the detection code is here:


Probably a good idea to stop catering for the makefiles and add a similar TTY
detection like DMD's (see below) and detect/hard-code the CIs which support


Sep 19 2020