In the thread below
Programmatic access to current xterm background color?
Alex North-Keys provides a useful bash script that returns the background color of the current xterm. I'd like to use the output of this script to reset the background color after it has been changed (e.g., after logging into a remote system).
For example, his script might return something like
rgb:e0e0/ffff/ffff
Unfortunately the escape sequence I use to set the background color
echo -ne "\033]11;!*\007"
seems to work only if I feed it a named color, like ivory.
Is there a way to modify this command so that it will take as an argument something like e0e0/ffff/ffff?
Thanks!