mirror of
https://github.com/vale981/jobmanager
synced 2025-03-05 18:01:38 -05:00
irgendwas
This commit is contained in:
parent
eea0e79474
commit
f10ad7b477
1 changed files with 1 additions and 7 deletions
|
@ -1090,13 +1090,7 @@ def get_terminal_size(defaultw=80):
|
|||
return (hw[1], hw[0])
|
||||
except:
|
||||
try:
|
||||
if sys.version_info[0] == 2:
|
||||
# Python 2
|
||||
stderr = sp.STDOUT
|
||||
else:
|
||||
# Python 3
|
||||
stderr = sp.DEVNULL
|
||||
out = sp.check_output(["tput", "cols"], stderr = stderr)
|
||||
out = sp.check_output(["tput", "cols"])
|
||||
width = int(out.decode("utf-8").strip())
|
||||
return (width, None)
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue