~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

Add tests, introduce explicit default values, always respect COLUMNS.

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Test the known cases.

* bzrlib/osutils.py:
(terminal_width): Add default values and always respect the
COLUMNS envrionment variable. Catch TIOCGWINSZ related errors more
broadly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
Bug Fixes
23
23
*********
24
24
 
25
 
* ``osutils.terminal_width()`` will now return a very large value
26
 
  to avoid truuncated lines when using pagers (for example).
27
 
  (Joke de Buhr, Vincent Ladeuil, #353370)
 
25
* ``osutils.terminal_width()`` obeys the COLUMNS envrionment
 
26
  variable and then default to a reasonable value if the terminal
 
27
  is not a tty (when output is redirected for example). Also
 
28
  fixes its usage under OSes that doesn't provide
 
29
  termios.TIOCGWINSZ.
 
30
  (Joke de Buhr, Vincent Ladeuil, #353370, #62539)
28
31
 
29
32
Improvements
30
33
************