Return a function which returns console dimensions (width, height). Supported: linux, osx, windows, cygwin.
()
| 280 | |
| 281 | |
| 282 | def _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 | |
| 297 | def _screen_shape_windows(fp): # pragma: no cover |
no outgoing calls
no test coverage detected