This works to change the background color for the entire terminal with xterm:

printf '\033]10;%s\a\033]11;%s\a' Blue Red

It doesn't work in xfce4-terminal, tho. Is there something that will work? Note, I want a command line solution.

1 Answer 1


It's not possible with the current version of xfce-terminal (4.12), since it uses an ancient, Gtk+2-based vte for terminal emulation. You should wait until they port their code to the new, Gtk+3-based vte, or switch to another terminal emulator (e.g. gnome-terminal).

  • To whoever downvoted my post: By the time I posted it, it was a perfectly valid answer. By now (when you downvoted it, Aug '19) it's indeed obsolete. It would have been much more appropritate to file a comment about it than downvoting. Next time please check the date of the answer before taking action.
    – egmont
    Aug 17, 2019 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.