This question already has an answer here:
Is it possible to run a command in another opened terminal? I know I can redirect the output of a command in another terminal. For example:
Where x can be obtained by running
tty on the target terminal.
But the command is executed on the current terminal. That is not what I want.
To clarify my real objective, I want to send a command to every opened terminal, to change color theme without having to re-open every terminal.