mercurial/ui.py
changeset 30314 365812902904
parent 30310 5c379b1f56c7
child 30332 318a24b52eeb
equal deleted inserted replaced
30313:392633d7860e 30314:365812902904
   820         if 'COLUMNS' in encoding.environ:
   820         if 'COLUMNS' in encoding.environ:
   821             try:
   821             try:
   822                 return int(encoding.environ['COLUMNS'])
   822                 return int(encoding.environ['COLUMNS'])
   823             except ValueError:
   823             except ValueError:
   824                 pass
   824                 pass
   825         return scmutil.termwidth(self)
   825         return scmutil.termsize(self)[0]
   826 
   826 
   827     def formatted(self):
   827     def formatted(self):
   828         '''should formatted output be used?
   828         '''should formatted output be used?
   829 
   829 
   830         It is often desirable to format the output to suite the output medium.
   830         It is often desirable to format the output to suite the output medium.