Method: rich.ansi.AnsiDecoder.decode
Calls: 49, Exceptions: 0, Paths: 1Back
Path 1: 49 calls (1.0)
'1' (11) '0' (3) 'Layout()' (2) "Layout(\n name='foo'\n)" (2) '(\n 1,\n)' (2) 'Hello\n\x1b[1mfoo\x1b[0m\n\x1b]8;id=216776;http://example.org\x1b...
Text (84)
1def decode(self, terminal_text: str) -> Iterable[Text]:
2 """Decode ANSI codes in an iterable of lines.
3
4 Args:
5 lines (Iterable[str]): An iterable of lines of terminal output.
6
7 Yields:
8 Text: Marked up Text.
9 """
10 for line in terminal_text.splitlines():
11 yield self.decode_line(line)