lib/epitools/term.rb in epitools-0.5.107 vs lib/epitools/term.rb in epitools-0.5.108
- old
+ new
@@ -27,11 +27,11 @@
#
# Return the [width,height] of the terminal.
#
def size
- STDIN.winsize.reverse
+ $stdout.winsize.reverse
end
def width; size[0]; end
def height; size[1]; end
def goto(x,y); @x, @y = x, y; end
@@ -138,9 +138,10 @@
def in_columns
return '' if @data.empty?
render sliced_into(num_rows).transpose
end
alias_method :by_columns, :in_columns
+ alias_method :by_cols, :in_columns
def in_rows
return '' if @data.empty?
render sliced_into(num_columns)
end