tliff
tliff

Reputation: 1764

Change background of Terminal.app from the commandline

Is it possible to change the background color of Terminal.app from the shell? If so, how?

Upvotes: 6

Views: 3938

Answers (2)

webclimber
webclimber

Reputation: 2640

osascript -e "tell application \"Terminal\" to set background color of window 1 to {0,45000,0,0}"

(Can't take the credit)

Upvotes: 14

vanja.
vanja.

Reputation: 2572

I don't know the specifics, but I imagine you'd want to write an AppleScript program which you invoke from your shell script. The AppleScript would "Tell" Terminal to change its background colour.

Upvotes: 0

Related Questions