Re: [dev][st] Approach to adding -bg colour option to st

From: Jan <keks_AT_unstable.nl>
Date: Mon, 25 Apr 2011 11:34:12 +0200

On Mon, 25 Apr 2011 10:56:15 +0200, Troels Henriksen <athas_AT_sigkill.dk>
wrote:
> Aurélien Aptel <aurelien.aptel_AT_gmail.com> writes:
>
>> On Sun, Apr 24, 2011 at 8:10 PM, David Tweed <david.tweed_AT_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).
>
> This is true, because then XAllocNamedColor will handle everything for
> you.
>
> It is also worth considering whether to handle this via X Resources (the
> ~/.Xdefaults file) instead of command line options - since a terminal is
> not normally something you are going to start by invoking directly, but
> rather through a shortcut in your window manager.

The only reason I see for having the bg-color changed at runtime is, that
I have special cases in which I want a red or green or so bg terminal. If I
just want to set the default bg, it should imho be done in config.h.

-jan
Received on Mon Apr 25 2011 - 11:34:12 CEST

This archive was generated by hypermail 2.2.0 : Mon Apr 25 2011 - 11:36:02 CEST