Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 37526 for trunk/base/src

Show
Ignore:
Timestamp:
06/11/08 05:58:33 (6 months ago)
Author:
raimue@…
Message:

port/port.tcl:
If env(COLUMNS) is not available, do not wrap.
See #15488.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r37386 r37526  
    409409            set env(COLUMNS) $cols 
    410410            set env(LINES) $rows 
    411         } else { 
    412             puts stderr "Warning: Unable to get terminal size, using 80x24!" 
    413             set cols 80 
    414             set rows 24 
    415411        } 
    416412    } 
     
    430426 
    431427    if {$maxlen == 0} { 
     428        if {![info exists env(COLUMNS)]} { 
     429            # no width for wrapping 
     430            return $string 
     431        } 
    432432        set maxlen $env(COLUMNS) 
    433433    } 
     
    453453 
    454454    if {$maxlen == 0} { 
     455        if {![info exists env(COLUMNS)]} { 
     456            # no width for wrapping 
     457            return $string 
     458        } 
    455459        set maxlen $env(COLUMNS) 
    456460    }