From December 3, 2005:
More Eterm. I haven’t figured out the End key, but I figured out how to toggle between black-on-white and white-on-black.
This involves ANSI escape sequences. Tricksy things. \e]2;TITLEBAR\a is an example of an escape sequence. (See the previous entry) Here are the two lines that do the job:
bind ctrl alt b to string ‘^39;#aaaaaa^G^49;black^G’
bind ctrl alt w to string ‘^39;black^G^49;white^G’
I’m not sure how to explain them, so I’ll leave it at that. Here is the site where I found the escape sequences to use.