Attempting to parse free-form ANSI text.

Paul McGuire ptmcg at austin.rr._bogus_.com
Mon Oct 23 15:46:42 EDT 2006


"Frederic Rentsch" <anthra.norell at vtxmail.ch> wrote in message 
news:mailman.972.1161608427.11739.python-list at python.org...
>> Prints:
>> This is a test string containing some ANSI sequences.
>> Sequence 1:
>> <change color attributes to ['1012']>
>>
> I doubt we should concatenate numbers.

Oof! No doubt.  I should read my test output more closely!

This is an artifact of using Combine to only recognize escape sequences with 
no intervening whitespace.  Removing Combine solves this problem.

-- Paul 





More information about the Python-list mailing list