class Shelr::Terminal

Public Instance Methods

puts_line() click to toggle source
# File lib/shelr/terminal.rb, line 9
def puts_line
  STDOUT.puts "-=" * (size[:width] / 2)
end
size() click to toggle source
# File lib/shelr/terminal.rb, line 4
def size
  height, width = `stty size`.split(' ')
  { :height => height.to_i, :width => width.to_i }
end