Method: rich.screen.Screen.__rich_console__
Calls: 6, Exceptions: 0, Paths: 1Back
Path 1: 6 calls (1.0)
Console (6)
ConsoleOptions (6)
Segment (58)
1def __rich_console__(
2 self, console: "Console", options: "ConsoleOptions"
3 ) -> "RenderResult":
4 width, height = options.size
5 style = console.get_style(self.style) if self.style else None
6 render_options = options.update(width=width, height=height)
7 lines = console.render_lines(
8 self.renderable or "", render_options, style=style, pad=True
9 )
10 lines = Segment.set_shape(lines, width, height, style=style)
11 new_line = Segment("\n\r") if self.application_mode else Segment.line()
12 for last, line in loop_last(lines):
13 yield from line
14 if not last:
15 yield new_line