www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20822] New: control characters for the console are included

https://issues.dlang.org/show_bug.cgi?id=20822

          Issue ID: 20822
           Summary: control characters for the console are included even
                    when dmd is piped
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

just open a console in your terminal, put a typo in a source to get an error
(for example line 792 of declaration.d, rename isOverDeclaration ->
isOveDeclaration) and

  $ make -f posix.mak > a.out

I get things like

 ERROR: [1mdmd/declaration.d(792): [1;31mError: [mno property
[0;36m[m[1misOveDeclaration[0;36m[m for type
[0;36m[m[1mdmd[0;36m.[m[1mdsymbol[0;36m.[m[1mDsymbol[0;36m[m, did you mean
[0;36m[m[1mdmd[0;36m.[m[1mdsymbol[0;36m.[m[1mDsymbol[0;36m.[m[1misOverDeclaration[0;36m[m?
Not good. --
May 11 2020