Re: [dev] [dvtm] Configurable, dynamic, terminal colors in dvtm

From: Ross Mohn <rpmohn_AT_waxandwane.org>
Date: Sun, 20 Mar 2011 11:21:47 -0400

 Great, thanks. Please wait for a new patch for AIX as well because I've
made a few changes to make it fit in better with the main trunk. I'll
resubmit the following 4 patches in more polished states, probably this
week.

* AIX compatibility
* color support (I'll recheck the change from 256 to 512 to see if it's
still needed)
* backfill on resize
* dynamic window colors

Also, what do you think about moving the definition of keytable[] to the
config.h file? The reason I ask is that I work in Cache and it requires
some specific escape sequence keyboard mappings that are different from
what most people would want. I have no problem going into madtty.c for
myself, but I was thinking that others may want to make their own
keyboard mappings as well. Please let me know what you think.

Thanks! -Ross

On 03/20/2011 04:53 AM, Marc Andre Tanner wrote:
> Hi,
>
> On Fri, Mar 18, 2011 at 11:18:27AM -0400, Ross Mohn wrote:
>> Hi,
>> I've implemented configurable, dynamic, terminal colors in dvtm using
>> string matching rules similar to dwm's rules for determining tag, float,
>> and monitor settings for a window. It's common practice to use
>> background colors to visually keeping track of what server you're logged
>> in to, or for when you're logged in as root. The way this works is by
>> using strstr() against the terminal title string. Here's an example:
>>
>> static const ColorRule colorrules[] = {
>> /* title attrs fgcolor bgcolor */
>> { "svrprod", A_BOLD, BLACK, 224 },
>> { "svrqa", A_NORMAL, BLACK, 195 },
>> };
>>
> Sounds useful in some cases, so please post a patch.
>
>> If others are interested, I can submit a patch for this. Ccombining it
>> with the previous two patches I posted would be easiest, since they go
>> off of the current dvtm-HEAD.
> Please don't merge it all in one big patch instead keep one patch per
> logical change. It's no problem if the patches depend on each other.
>
>> Probably still a couple of bugs to work
>> out, but it's pretty good now! (There are a couple of bugs in my
>> previous backfill patch that I do have to work out.)
> Just resend the patches once your comfortable with them. I will take a
> look but unfortunately I have currently only rarely access to the internet
> which means it will proabably not happen before April (your changes to
> support AIX are also in my patch queue).
>
> Thanks,
> Marc
>
Received on Sun Mar 20 2011 - 16:21:47 CET

This archive was generated by hypermail 2.2.0 : Sun Mar 20 2011 - 16:36:02 CET