Skip to content

Instantly share code, notes, and snippets.

@thbar
Created May 15, 2013 13:37
Show Gist options
  • Save thbar/5584058 to your computer and use it in GitHub Desktop.
Save thbar/5584058 to your computer and use it in GitHub Desktop.
How to quickly switch Mac OS X terminal background between black and white.
# based on http://stackoverflow.com/questions/549186/change-background-of-terminal-app-from-the-commandline
function darkback {
osascript -e "tell application \"Terminal\" to set background color of window 1 to {0,0,0}"
}
function lightback {
osascript -e "tell application \"Terminal\" to set background color of window 1 to {65535,65535,65535}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment