예제 #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()
예제 #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()
예제 #3
0
파일: ui.py 프로젝트: guitao/hg-stable
 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()
예제 #4
0
 def termwidth(self):
     return self.width or util.termwidth()
예제 #5
0
파일: shell.py 프로젝트: cjmeyer/coal
 def termwidth(self):
     return self.width or util.termwidth()