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