~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4747.4.5.

More robusts tests for osutils.terminal_width().

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Make the tests more robust.

* bzrlib/osutils.py:
(terminal_width): Document the implemented behavior. Delegate the
OS specific part to _terminal_size.
(_ioctl_terminal_size): The unix implementation for
_terminal_size.
(_win32_terminal_size): The windows implementation for
_terminal_size.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: