MacでiTermの背景色を変更するシェルスクリプト
[ch_bg_color.sh]
#!/bin/bash R=$1 G=$2 B=$3 /usr/bin/osascript <<EOF tell application "iTerm" tell current session of current window set background color to {$(($R*65535/255)), $(($G*65535/255)), $(($B*65535/255))} end tell end tell EOF
AppleScriptを使ってるし完全にMac用。