I've actually named the option --bgcolor, to avoid confusion with
background processes. The possible values are light, dark and auto.
Ronnie
On 28 jan, 21:08, Misha Seltzer <
misha.selt...@gmail.com> wrote:
> Instead of environment variable, I would suggest adding a command-line
> parameter --background=[light/dark].
> In any case, we already support the ~/.testoobrc file, so you could just put
> this argument there, and it'll be default for you.
>
> On Wed, Jan 28, 2009 at 22:02, Ronnie van 't Westeinde <
>
>
>
>
ronnie.van.t.westei...@gmail.com> wrote:
> > In that case, may I suggest to rewrite the C program to take an integer or
> > hex-number as argument andoffer a get function to retrieve the background
> > color?
>
> > I'm working on a feature to use a blue warning color if testoob can
> > autodetect a light background.
> > (If autodetection is not possible, blue can be activated by setting the
> > environment variable
> > TESTOOB_WARNING_COLOR to blue)
>
> > By making the above changes, I can put the logic of switching between blue
> > and yellow as warning color
> > purely in Python.
> > Ronnie
>
> > On Tue, Jan 27, 2009 at 11:08 PM, Ori Peleg <
ori...@gmail.com> wrote:
>
> >> Amir Szekely wrote it (
http://kichik.net).It'sfor color support on
> >> Windows terminals when the other options (ctypes or win32console) aren't
> >> available.
>
> >> In windows you set the terminal colors with API calls to manipulate the
> >> terminal, not by printing control codes. The win32console module (part of
> >> pywin32 <
http://sourceforge.net/projects/pywin32/>) wraps this API, and