def termwidth(self): '''how wide is the terminal in columns? ''' if 'COLUMNS' in os.environ: try: return int(os.environ['COLUMNS']) except ValueError: pass return util.termwidth()
def termwidth(self): """how wide is the terminal in columns? """ if "COLUMNS" in os.environ: try: return int(os.environ["COLUMNS"]) except ValueError: pass return util.termwidth()
def termwidth(self): return self.width or util.termwidth()