class _FormattingState(_textattributes._FormattingStateMixin): (source)
Constructor: _FormattingState(charset, bold, underline, blink, ...)
Represents the formatting state/attributes of a single character.
Character set, intensity, underlinedness, blinkitude, video reversal, as well as foreground and background colors made up a character's attributes.
| Method | __init__ |
Undocumented |
| Method | to |
Emit a VT102 control sequence that will set up all the attributes this formatting state has set. |
| Method | want |
Add a character attribute to a copy of this formatting state. |
| Class Variable | compare |
Undocumented |
| Instance Variable | background |
Undocumented |
| Instance Variable | blink |
Undocumented |
| Instance Variable | bold |
Undocumented |
| Instance Variable | charset |
Undocumented |
| Instance Variable | foreground |
Undocumented |
| Instance Variable | reverse |
Undocumented |
| Instance Variable | underline |
Undocumented |
| Instance Variable | _subtracting |
Undocumented |
Inherited from _FormattingStateMixin:
| Method | copy |
Make a copy of this formatting state. |
| Method | _with |
Add a character attribute to a copy of this formatting state. |
Inherited from DefaultFormattingState (via _FormattingStateMixin):
| Class Variable | _dummy |
Undocumented |
Inherited from FancyEqMixin (via _FormattingStateMixin, DefaultFormattingState):
| Method | __eq__ |
Undocumented |
| Method | __ne__ |
Undocumented |
Undocumented
Emit a VT102 control sequence that will set up all the attributes this formatting state has set.
| Returns | |
| A string containing VT102 control sequences that mimic this formatting state. |
Add a character attribute to a copy of this formatting state.
| Parameters | |
| **kw | An optional attribute name and value can be provided with a keyword argument. |
| Returns | |
| A formatting state instance with the new attribute. |
| See Also | |
DefaultFormattingState._withAttribute. |