diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-08-12 20:08:48 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-08-12 20:08:48 +0000 |
| commit | 6a3db97ca8720884c79ce8e05729a458e063d406 (patch) | |
| tree | 4609bf0639e2e9698e8ebbaa6aed11e3e2204cbc /qpid/python/qpid-python-test | |
| parent | bcf296290a524c0d775bc9c741d212ba6aa62d40 (diff) | |
| download | qpid-python-6a3db97ca8720884c79ce8e05729a458e063d406.tar.gz | |
made width default pay attention to the COLUMNS environment variable
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@803692 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/qpid-python-test')
| -rwxr-xr-x | qpid/python/qpid-python-test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/python/qpid-python-test b/qpid/python/qpid-python-test index 22063185b2..528acaa124 100755 --- a/qpid/python/qpid-python-test +++ b/qpid/python/qpid-python-test @@ -134,7 +134,10 @@ def width(): rows, cols, xpx, ypx = struct.unpack("HHHH", x) return cols else: - return 80 + try: + return int(os.environ.get("COLUMNS", "80")) + except ValueError: + return 80 WIDTH = width() |
