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

Function _screen_shape_wrapper

pager_lib/tqdm/utils.py:282–294  ·  view source on GitHub ↗

Return a function which returns console dimensions (width, height). Supported: linux, osx, windows, cygwin.

()

Source from the content-addressed store, hash-verified

280
281
282def _screen_shape_wrapper(): # pragma: no cover
283 """
284 Return a function which returns console dimensions (width, height).
285 Supported: linux, osx, windows, cygwin.
286 """
287 _screen_shape = None
288 if IS_WIN:
289 _screen_shape = _screen_shape_windows
290 if _screen_shape is None:
291 _screen_shape = _screen_shape_tput
292 if IS_NIX:
293 _screen_shape = _screen_shape_linux
294 return _screen_shape
295
296
297def _screen_shape_windows(fp): # pragma: no cover

Callers 2

__init__Method · 0.85
_environ_cols_wrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected