Are there too many lines to fit into terminal?
(self, lines)
| 1334 | return len(COLOR_CODE_REGEX.sub("", line)) > self.prompt_app.output.get_size().columns |
| 1335 | |
| 1336 | def is_too_tall(self, lines): |
| 1337 | """Are there too many lines to fit into terminal?""" |
| 1338 | if not self.prompt_app: |
| 1339 | return False |
| 1340 | return len(lines) >= (self.prompt_app.output.get_size().rows - 4) |
| 1341 | |
| 1342 | def echo_via_pager(self, text, color=None): |
| 1343 | if self.pgspecial.pager_config == PAGER_OFF or self.watch_command: |