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

Method is_too_wide

pgcli/main.py:1330–1334  ·  view source on GitHub ↗

Will this line be too wide to fit into terminal?

(self, line)

Source from the content-addressed store, hash-verified

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?"""

Callers 1

echo_via_pagerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected