fitzzftw.patch.protocols.LineLike

        ---
config:
  height: 300px
  width: 300px

title: LineLike
---
classDiagram
  Protocol <|-- LineLike
    

Inheritage diagramm for LineLike

class LineLike[source]

Bases: Protocol

Protocol defining the minimal interface for a line object to be printable.

Objects implementing this protocol are compatible with the TerminalColorMixin.print() and can be processed by the framework’s diagnostic output tools.

Methods

__init__(*args, **kwargs)

Attributes

prefix

The lookup key for the _color_map.

orig_line

The actual string content that will be output to the terminal.

__init__(*args, **kwargs)
_color_map: dict[str, 'red' | 'green' | 'yellow' | 'cyan' | 'terminal']

Dictionary mapping prefixes to semantic color keys.

orig_line: str

The actual string content that will be output to the terminal.

prefix: str | None

The lookup key for the _color_map.