In Sapien PowerShell Studio, writing a powershell script........
Using Write-Host to display a message to the Output doesn't seem to take background color or newline (`r`n). Is there something I need to enable in the options to allow this? Running in PowerShell ISE has no issues. Thanks,
Software - Output Console window
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- angelofstealth
- Posts: 67
- Joined: Wed Feb 13, 2013 4:26 pm
Re: Software - Output Console window
Newline works, color doesn't
Example:
Write-Host "`r`nHey..."-ForegroundColor Green
Example:
Write-Host "`r`nHey..."-ForegroundColor Green
-
- Posts: 14667
- Joined: Tue May 22, 2007 9:57 am
- Has voted: 1 time
- Been upvoted: 5 times
- Contact:
Re: Software - Output Console window
It works for me with no issue.
The "Output" panel is not a console. Use the "Run" drop down to select "Run in console" and all will work.
The "Output" panel is not a console. Use the "Run" drop down to select "Run in console" and all will work.
- angelofstealth
- Posts: 67
- Joined: Wed Feb 13, 2013 4:26 pm