(self, printer: ColorPrinter)
| 38 | self.index = index |
| 39 | |
| 40 | def output(self, printer: ColorPrinter) -> None: |
| 41 | assert self.controller is not None |
| 42 | (min_x, min_y, max_x, max_y) = self.controller.get_chrome_boundaries() |
| 43 | max_len = min(max_x - min_x, len(str(self))) |
| 44 | y_pos = min_y + self.index + self.controller.get_scroll_offset() |
| 45 | |
| 46 | if y_pos < min_y or y_pos >= max_y: |
| 47 | # wont be displayed! |
| 48 | return |
| 49 | |
| 50 | self.formatted_line.print_text(y_pos, min_x, printer, max_len) |
| 51 | |
| 52 | def __str__(self) -> str: |
| 53 | return str(self.formatted_line) |
nothing calls this directly
no test coverage detected