Changeset 386

Show
Ignore:
Timestamp:
12/22/06 00:11:25 (2 years ago)
Author:
sandal
Message:

fix for #118

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/ruport/system_extensions.rb

    r184 r386  
    5858      # A Unix savvy method to fetch the console columns, and rows. 
    5959      def terminal_size 
    60        `stty size`.split.map { |x| x.to_i }.reverse 
     60        size = `stty size 2>/dev/null`.split.map { |x| x.to_i }.reverse 
     61        return $? == 0 ? size : [80,24] 
    6162      end 
    6263