Changeset 37526 for trunk/base/src
- Timestamp:
- 06/11/08 05:58:33 (6 months ago)
- Files:
-
- 1 modified
-
trunk/base/src/port/port.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.tcl
r37386 r37526 409 409 set env(COLUMNS) $cols 410 410 set env(LINES) $rows 411 } else {412 puts stderr "Warning: Unable to get terminal size, using 80x24!"413 set cols 80414 set rows 24415 411 } 416 412 } … … 430 426 431 427 if {$maxlen == 0} { 428 if {![info exists env(COLUMNS)]} { 429 # no width for wrapping 430 return $string 431 } 432 432 set maxlen $env(COLUMNS) 433 433 } … … 453 453 454 454 if {$maxlen == 0} { 455 if {![info exists env(COLUMNS)]} { 456 # no width for wrapping 457 return $string 458 } 455 459 set maxlen $env(COLUMNS) 456 460 }

