Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
 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()
Esempio n. 4
0
 def termwidth(self):
     return self.width or util.termwidth()
Esempio n. 5
0
 def termwidth(self):
     return self.width or util.termwidth()