[svn r63053] forbid too small windows width for now
--HG-- branch : trunk
This commit is contained in:
parent
eb68ec75aa
commit
5cd05c565c
|
@ -75,6 +75,8 @@ def get_terminal_width():
|
||||||
except:
|
except:
|
||||||
# FALLBACK
|
# FALLBACK
|
||||||
width = int(os.environ.get('COLUMNS', 80))-1
|
width = int(os.environ.get('COLUMNS', 80))-1
|
||||||
|
# XXX the windows getdimensions may be bogus, let's sanify a bit
|
||||||
|
width = max(width, 40) # we alaways need 40 chars
|
||||||
return width
|
return width
|
||||||
|
|
||||||
terminal_width = get_terminal_width()
|
terminal_width = get_terminal_width()
|
||||||
|
|
Loading…
Reference in New Issue