You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/03/05 22:10:20 UTC
svn commit: r1297231 - /subversion/trunk/build/run_tests.py
Author: danielsh
Date: Mon Mar 5 21:10:08 2012
New Revision: 1297231
URL: http://svn.apache.org/viewvc?rev=1297231&view=rev
Log:
Follow-up to r1297223:
* build/run_tests.py
(_get_term_width): Add docstring.
Modified:
subversion/trunk/build/run_tests.py
Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1297231&r1=1297230&r2=1297231&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Mon Mar 5 21:10:08 2012
@@ -72,7 +72,15 @@ class TextColors:
def _get_term_width():
- 'Attempt to discern the width of the terminal'
+ '''Attempt to discern the width of the terminal
+
+ Consults:
+ ../.width,
+ TIOCGWINSZ ioctl on stdin/stdout/stderr,
+ getenv("COLUMNS"),
+ in this order. Falls back to the constant "80".
+ '''
+
# This may not work on all platforms, in which case the default of 80
# characters is used. Improvements welcomed.