Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2815

Can I change the WSL terminal background color from the own terminal command line?

$
0
0

I use multiple WSL Ubuntu terminals from which I connect to different remote machines. It can get messy when I have many windows open to distinguish which window is for each machine, so I change the background color for the different windows and thus it's easier to identify on which remote machine I'm in.
I change the bg color with right click on the window top, -> properties -> colors -> screen background.But this is getting tedious for every time I open a new window and I want to change the color.

I'd like to have scripts on the command line e.g. set_red_bg, set_blue_bg and so on. I tried to find instructions, but I only found for changing PS1, or LS_COLOR.

Is this actually doable? As I currently change the bg color from the Windows terminal options, I'm afraid the bg color for the terminal cannot be controlled from the Ubuntu shell, can it?


Viewing all articles
Browse latest Browse all 2815


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>