3

Is it possible to change the background (or window) color of open terminal window on Ubuntu GNOME environment? I would like to do this for tagging purpose when working with multiple terminals.

1
  • see linked dupe question and answer, it has a nice chart of colour codes. there are also many more similar questions with answer on this site. Commented Aug 14, 2017 at 13:11

1 Answer 1

4

You can do so in GNOME Terminal and a few other (although not all) terminal emulators using the OSC 11 escape sequence with a color name or an #RGB code, e.g.:

echo -ne '\e]11;yellow\a' 

or

echo -ne '\e]11;#abcdef\a' 

Similarly, use number 10 instead of 11 for the default text color.

1
  • can I also change the color of text? Awesome trick anyway Commented Aug 14, 2017 at 13:07

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.