[svn r63053] forbid too small windows width for now

--HG--
branch : trunk
This commit is contained in:
hpk 2009-03-18 20:39:33 +01:00
parent eb68ec75aa
commit 5cd05c565c
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ def get_terminal_width():
except:
# FALLBACK
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
terminal_width = get_terminal_width()