MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _screen_shape_tput

Function _screen_shape_tput

pager_lib/tqdm/utils.py:321–330  ·  view source on GitHub ↗

cygwin xterm (windows)

(*_)

Source from the content-addressed store, hash-verified

319
320
321def _screen_shape_tput(*_): # pragma: no cover
322 """cygwin xterm (windows)"""
323 try:
324 import shlex
325 from subprocess import check_call # nosec
326 return [int(check_call(shlex.split('tput ' + i))) - 1
327 for i in ('cols', 'lines')]
328 except Exception: # nosec
329 pass
330 return None, None
331
332
333def _screen_shape_linux(fp): # pragma: no cover

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected