示例#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()