Exemplo n.º 1
0
    def __init__(self):

        self.dynamicTaskValidator = DynamicTaskValidator()
        self.term_size = 80
        args = os.popen('stty -a', 'r').read().split(';')
        for x in args:
            x = x.strip().lstrip()
            if x.startswith("columns"):
                # Either split by = or ' '
                splitChar = ' '
                if '=' in x:
                    splitChar = '='
                k, v = x.split(splitChar)
                self.term_size = int(v)