Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.