Friday, 7 December 2018

gnome - How to change background/foreground color on "all" existing terminals


I am looking for a command line way to change the background & foreground colors of all open terminal (and also for any new terminal, the new settings should be applied).


Using something like setterm -term linux -back blue -fore white -clear only the terminal in which I execute the command is affected. I want to change for all terminals, without needed to close/reopen any terminal.


thanks



Answer



You can redirect the output of the setterm command to the device file of the terminal.


for i in {0..3}; do setterm -term linux -back blue -fore white -clear > /dev/pts/$i; done

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...