Turn off colors while running a program.

rated by 0 users
This post has 4 Replies | 2 Followers

Not Ranked
Posts 3
ilcredo Posted: 04-21-2012 6:03 AM

Node.js's REPL changes the color of its output and makes it unreadable inside PS console.

It is there a way to force the output of a program to be in one color? I think it should because the console draws the screen.

Top 10 Contributor
Posts 640

No, not if the program changes color.  That's the console app, not powershell. Try setting the background color to something other than the default blue?

Not Ranked
Posts 3

Hmmm, i get it and it seems that the standard console can't be modified.

The colors are changing every time and it is obviously a bug in Node. I'll see if i can do something within Console2.

Thanks, i always tend to forget that these are two different programs.

Top 10 Contributor
Posts 640

You could also try running from the PowerShell ISE. It ignores some of the color directives since it maintains a light-colored background. But it's ultimately just shelling out to Cmd.exe and capturing output.

Not Ranked
Posts 3

In ISE most of the output is ignored and now low visibility doesn't seem such a serious problem anymore. I'll report a bug to the project and wait how it will turn out. Thank you for clarifying how things work.

Page 1 of 1 (5 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.