Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some programs, such as Node Package Manager (npm) and some tasks for grunt change the color of my PowerShell console and leave it that way. Here's a picture:

enter image description here

Anyone know why this is happening? How do I get it back to normal and/or stop it from happening?

share|improve this question
    
you can use the command "cls" to clear the screen. – MikeAWood Jul 10 '13 at 1:51
up vote 1 down vote accepted

No doubt the script is changing colors to bring things to your attention. To put it back, you could use the following script. Or better yet, add it to your profile and run 'Prompt' when you need to reset it.

function Prompt
{
    $promptString = "PS " + $(Get-Location) + ">"
    Write-Host $promptString -NoNewline -ForegroundColor White
    return " "
}
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .