nmh-workers
[Top][All Lists]
Advanced

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

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


From: Tom Lane
Subject: Re: [Nmh-workers] colorized/highlighted scan output?
Date: Thu, 01 Nov 2012 22:25:07 -0400

David Levine <address@hidden> writes:
> Ken wrote:
>> 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.

+1 for a "don't count this" format escape.  I don't think scan should be
assuming anything about what the terminal might take to be an escape
sequence.  They're not that well standardized.

                        regards, tom lane



reply via email to

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