class documentation

class twisted.python._textattributes.DefaultFormattingState(FancyEqMixin): (source)

Known subclasses: twisted.python._textattributes._FormattingStateMixin

View In Hierarchy

A character attribute that does nothing, thus applying no attributes to text.

Class Variable compareAttributes Undocumented
Method copy Make a copy of this formatting state.
Method toVT102 Emit a VT102 control sequence that will set up all the attributes this formatting state has set.
Class Variable _dummy Undocumented
Method _withAttribute Add a character attribute to a copy of this formatting state.

Inherited from FancyEqMixin:

Method __eq__ Undocumented
Method __ne__ Undocumented
_dummy = (source)

Undocumented

(type: int)
def copy(self): (source)

Make a copy of this formatting state.

ReturnsA formatting state instance.
def _withAttribute(self, name, value): (source)

Add a character attribute to a copy of this formatting state.

ParametersnameAttribute name to be added to formatting state.
valueAttribute value.
ReturnsA formatting state instance with the new attribute.
def toVT102(self): (source)

Emit a VT102 control sequence that will set up all the attributes this formatting state has set.

ReturnsA string containing VT102 control sequences that mimic this formatting state.
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.