Skip to content

Commit

Permalink
Fix for terminal sizing hack for docker-for-mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Jan 23, 2017
1 parent e13da69 commit 189229b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shellish/paging.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def pager_process(pagercmd, stdout=None, stderr=None):
termsize = shutil.get_terminal_size()
if 0 in termsize:
warnings.warn("Could not determine terminal size")
termsize = os.terminal_size(80, 24)
termsize = os.terminal_size((80, 24))
env['COLUMNS'] = str(termsize.columns)
env['LINES'] = str(termsize.lines)
return subprocess.Popen(pagercmd, shell=True, universal_newlines=True,
Expand Down

0 comments on commit 189229b

Please sign in to comment.