add default screen size
This commit is contained in:
@@ -242,7 +242,10 @@ def readinput(lf):
|
||||
return "CleanerTimeout"
|
||||
|
||||
def termsize():
|
||||
rows, columns = os.popen('stty size', 'r').read().split()
|
||||
try:
|
||||
rows, columns = os.popen('stty size', 'r').read().split()
|
||||
except:
|
||||
(rows,columns)=(25,80)
|
||||
return (int(rows),int(columns))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user