cygwin xterm (windows)
(*_)
| 319 | |
| 320 | |
| 321 | def _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 | |
| 333 | def _screen_shape_linux(fp): # pragma: no cover |
nothing calls this directly
no outgoing calls
no test coverage detected