$1 is the color, as a four-value tuple:
$1 = "{0, 17655, 0, 50000}"Set the background color of Terminal window 1:
osascript -e "tell application \"Terminal\" to set background color of window 1 to $1"Updated:
2026 Aug 19
$1 is the color, as a four-value tuple:
$1 = "{0, 17655, 0, 50000}"Set the background color of Terminal window 1:
osascript -e "tell application \"Terminal\" to set background color of window 1 to $1"