I am writing a program to dynamically change all of my terminals (atm, it's URXVT) foreground color via OSC escape sequences. As a result, I have to sent the command to the currently open terminals for the command to apply.
The end goal is for this to quietly run in the background and run every minute or so (the color is picked from a background image which changes every minute), so things like xdotool don't work, as they send keystrokes to the terminal.
I tried ttyecho, but it seems to only work on the terminal it's run in, even if you specify otherwise.
Anyone know a solution to my problem? I'm not dependent on OSC, it's just the only way I've found to update the terminal colors without restarting them, so other methods are acceptable.