Merge pull request #1693 from ekristen/remove_tty_wrap
Do not wrap table cells
This commit is contained in:
commit
6c7c63ce34
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import texttable
|
||||||
def get_tty_width():
|
def get_tty_width():
|
||||||
tty_size = os.popen('stty size', 'r').read().split()
|
tty_size = os.popen('stty size', 'r').read().split()
|
||||||
if len(tty_size) != 2:
|
if len(tty_size) != 2:
|
||||||
return 80
|
return 0
|
||||||
_, width = tty_size
|
_, width = tty_size
|
||||||
return int(width)
|
return int(width)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue