class documentation
class _FormattingState(_textattributes._FormattingStateMixin): (source)
Constructor: _FormattingState(off, bold, underline, reverseVideo, ...)
Formatting state/attributes of a single character.
Attributes include:
- Formatting nullifier
- Bold
- Underline
- Reverse video
- Foreground color
- Background color
| Present Since | |
| 13.1 |
| Method | __init__ |
Undocumented |
| Method | to |
Emit a mIRC control sequence that will set up all the attributes this formatting state has set. |
| Class Variable | compare |
Undocumented |
| Instance Variable | background |
Undocumented |
| Instance Variable | bold |
Undocumented |
| Instance Variable | foreground |
Undocumented |
| Instance Variable | off |
Undocumented |
| Instance Variable | reverse |
Undocumented |
| Instance Variable | underline |
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):
| Method | to |
Emit a VT102 control sequence that will set up all the attributes this formatting state has set. |
| Class Variable | _dummy |
Undocumented |
Inherited from FancyEqMixin (via _FormattingStateMixin, DefaultFormattingState):
| Method | __eq__ |
Undocumented |
| Method | __ne__ |
Undocumented |
def __init__(self, off=False, bold=False, underline=False, reverseVideo=False, foreground=None, background=None):
(source)
¶
Undocumented
Emit a mIRC control sequence that will set up all the attributes this formatting state has set.
| Returns | |
| A string containing mIRC control sequences that mimic this formatting state. |