On Sun, Apr 24, 2011 at 8:10 PM, David Tweed <david.tw...@gmail.com> wrote: > to convert DefaultBG and DefaultFG from #define's into full C > variables with defaults and add option partsing code to set them > according to -fg and -bg. (The simplest thing would be to make the > argument be an array index rather than parsing a colour spec.) Before > I start working on a patch, does that sound like the appropriate way > to do this or is there a different way of handling colour that's being > envisaged?
A X11 parsable color is better (#rrggbb, "light red", etc). One solution would be to just overwrite dc.col[DefaultBG]. There's also an xterm esc seq that does the same thing [1]. Maybe both could be implemented. 1: ESC ] 49 ; xx BEL http://www.usf.uni-osnabrueck.de/infoservice/doc/localhtml/rxvt/refer.html#XTerm