[Issue 21266] New: Improve TTY and color detection in build.d

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 20 06:30:32 UTC 2020


          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 at puremagic.com
          Reporter: greeenify at 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



More information about the Digitalmars-d-bugs mailing list