nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] colorized/highlighted scan output?

2012-11-07 13:41:02
has anyone given any thought to colorizing the background of alternate lines
of scan output?  i've only been skimming, but i think "the way it ended up"
leaves that as not directly possible?

Hm.  If you don't care which hilight is first, I _think_ you can do it.
Untested, but ....

%(void(msg)%(void(modulo 2))%<(eq 0)...hilight on...%|...hilight off%>

Hm, well, that only works assuming contiguous message numbers, which isn't
a valid assumption.

I don't know if we can do that just in mh-format, because there's no
state kept between format invocations.  We'd need to pass some knowledge
from scan down into it.  Which isn't actually that hard; things like
%(msg) are just stuff passed down in a special 'dat' array.

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>