I\'d like to know if there is any way to determine a terminal\'s background color ?
In my case, using gnome-terminal.
It might matter, since it\'s entirety up to
Do you mean a method to ascertain the terminal background colour, or set the terminal colour?
If the latter you could query your terminal's PS1 environment variable to obtain the colour.
There's an article on setting (and so deriving) the terminal colours here: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/