class_docstr: Translate ANSI code in to styled Text.
class_docstr_tok: ["Translate","ANSI","code","in","to","styled","Text","."]
docstr: Decode ANSI codes in an iterable of lines.
  
  Args:
      lines (Iterable[str]): An iterable of lines of terminal output.
  
  Yields:
      Text: Marked up Text.
docstr_tok: ["Decode","ANSI","codes","in","an","iterable","of","lines",".","Args",":","lines","(","Iterable","[","str","]",")",":","An","iterable","of","lines","of","terminal","output",".","Yields",":","Text",":","Marked","up","Text","."]
code: def decode(self, terminal_text: str) -> Iterable[Text]:
      """Decode ANSI codes in an iterable of lines.
  
      Args:
          lines (Iterable[str]): An iterable of lines of terminal output.
  
      Yields:
          Text: Marked up Text.
      """
      for line in terminal_text.splitlines():
          yield self.decode_line(line)
  
file_path: rich/rich/ansi.py
imports: import re
  import sys
  from contextlib import suppress
  from typing import Iterable, NamedTuple, Optional
  from .color import Color
  from .style import Style
  from .text import Text
label_desc: Use image node_id 2 for calling the AnsiDecoder obj's underlying member method code with example usage: obj.decode(terminal_text) without return types