MCPcopy Index your code
hub / github.com/dbcli/pgcli / is_too_tall

Method is_too_tall

pgcli/main.py:1336–1340  ·  view source on GitHub ↗

Are there too many lines to fit into terminal?

(self, lines)

Source from the content-addressed store, hash-verified

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:

Callers 1

echo_via_pagerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected