Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
Change Colors in Angular CLI

The script that starts my Angular CLI development Web server produces almost illegible error messages, such as the following.[TypeScript Compiler Diagonstics]

I would much prefer something like this:[Legible Error Message

Before I start digging into the oodles of configuration files associated with my Angular/CLI installation, I thought that I would start by asking for directions.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

The easiest way to do it is to change characters in the output stream of the application that controls the color.

Linux bash:

ng serve | tr $INPUTCOLOR $OUTPUTCOLOR

or

ng serve | sed -r "s/$INPUTCOLOR/$OUTPUTCOLOR/g'

Windows PowerShell:

ng serve | ForEach-Object { $_ -replace $INPUTCOLOR, $OUTPUTCOLOR }

The $INPUTCOLOR and $OUTPUTCOLOR is needed to be set to run the code. This way every red foreground color can be changed with red background and white foreground color.

about 4 years ago · Santiago Trujillo Report

0

You can achieve this by adding | %{$_ -replace "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]",""} to the end of the command. For example:

ng build | %{$_ -replace "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]",""}

Source: https://github.com/angular/angular-cli/issues/6478

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!