iTerm2 allows to set a background image or color, either for the current window or the default (used for all new windows).
However, can I also set the current window's background image or color from the command line? I.e. is there some magic iTerm2 terminal command to set the active window's background?
I would love to use this in scripts to change the background reflecting that I'm logged in at certain remote systems, to make an automatic visual difference between local or remote shells, or even use specific backgrounds for ssh sessions on specific servers.