Skip to content

Instantly share code, notes, and snippets.

@billkindle
Created April 23, 2018 22:08
Show Gist options
  • Save billkindle/e211e7dcf60c6156f4f3cf3824b02bc1 to your computer and use it in GitHub Desktop.
Save billkindle/e211e7dcf60c6156f4f3cf3824b02bc1 to your computer and use it in GitHub Desktop.
Start a color blind friendly PowerShell console session.
function Start-PresentationMode {
# change certain colors to be friendlier to those with color blindness
Write-Host -ForegroundColor Yellow "Changing ERROR foreground color from RED >>> BLUE"
$Host.PrivateData.ErrorForegroundColor = "Blue"
Write-Host -ForegroundColor Yellow "Ghanging ERROR backround color >>> WHITE"
$Host.PrivateData.ErrorBackgroundColor = "white"
# Could add more here based on what colors are preferred but this is a start.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment