(self, line, pos=-1, left="\u2502 ", right=" \u2502", width=None)
| 115 | secho(self.generate_heading(*args, **kwargs), file=self.fd, color=TTY_COLORS) |
| 116 | |
| 117 | def align(self, line, pos=-1, left="\u2502 ", right=" \u2502", width=None): |
| 118 | if width is None: |
| 119 | width = self.width |
| 120 | line = self._align_text(line, width - len(left) - len(right), pos=pos) |
| 121 | secho(f"{left}{line}{right}", file=self.fd, color=TTY_COLORS) |
| 122 | |
| 123 | def wrap(self, text, left="\u2502 ", right=" \u2502"): |
| 124 | remaining_len=self.width - len(left) - len(right) |
no test coverage detected