You could grab xtermcontrol
Sorry not much clue with C but i think theres a function http://www.freepascal.org/docs-html/rtl … tattr.html
that may point in right direction.
tnx for the reply.
seems xterminfo just gets stuck under my xorg, had to kill it. also, it seems it retrieves xterm info only, and im looking for more common way to retrieve bg color from any possible terminal.
the link (tccgetattr) is for a freePascal function, which grabs terminal info - but no background either...
in C it wouldn't be that hard, however it gets difficult when you talk about different WMs...
Basically, you iterate over each top level window (the frame)... but you'd need a way to determin which child of the fram is the application (the title bar, buttons, and possibly status bar are all children as well).
Then you just call a "property get" on the app window...
the main difficulty is going to be different window managers...
well, tnx for that phrakture.
i think im gonna do a quick "bail out" and force my own background color on the terminal instead of drowning in an unknown and unrelated code... (/me raises the lazy flag)