Will this line be too wide to fit into terminal?
(self, line)
| 1328 | return self.query_history[-1][0] if self.query_history else None |
| 1329 | |
| 1330 | def is_too_wide(self, line): |
| 1331 | """Will this line be too wide to fit into terminal?""" |
| 1332 | if not self.prompt_app: |
| 1333 | return False |
| 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?""" |