[Twisted-Python] Conch text attribute flattening quirks
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Thu Feb 23 09:12:26 EST 2012
On 22 Feb, 04:15 pm, jonathan+twisted at jsphere.com wrote:
>On Wed, Feb 22, 2012 at 17:25, Tim Allen <screwtape at froup.com> wrote:
>>...that is, there's no code for 'end bold' or 'end italics' (or blink,
>>dim,
>>underline, invisible, any kind of colouring, etc.) just an 'end all
>>special attributes' code. Therefore it's reasonable for conch's helper
>>library to not handle nested formatting, since no terminal program
>>will
>>produce such a thing, because it's impossible to represent in the
>>VT100/VT200 formatting language.
>
>I understand this, but then what is the point of placing content into
>A.bold in the first place? Why not just drop A.bold into a flat
>stream: [foo, A.bold, bar]
I think the behavior you observed is a bug in the implementation (I
noticed it during our IRC conversation the other day as well, but wasn't
sure if I'd made a mistake or misread something). It should be fixed,
and perhaps that TODO test made to pass. :)
Jean-Paul
More information about the Twisted-Python
mailing list