[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: David Levine
Subject: Re: [Nmh-workers] colorized/highlighted scan output?
Date: Thu, 01 Nov 2012 20:59:08 -0500

Ken wrote:

> My thinking was to add an extra parameter to fmt_scan() that meant
> the buffer size available and limit the output based on both the
> number of characters and the total buffer size.


> My issue is straightforward and doesn't require any user-visible
> changes, but I am thinking your issue might.  I am wondering if
> you've thought about how you'd make this work; maybe a format escape
> that says, "Don't count these characters against the width total?"
> Or something else?

I was thinking of looking for ANSI sequences and not counting
them.  But I don't know if that could get into trouble with
multibyte characters.  mbtowc() is too much of a mystery to me.

That format escape would avoid the issue.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]