module Fir::ScreenHelper

Public Instance Methods

clear(n) click to toggle source
# File lib/fir/screen_helper.rb, line 18
def clear(n)
  "\e[#{n}K"
end
cursor_back(n) click to toggle source
# File lib/fir/screen_helper.rb, line 22
def cursor_back(n)
  "\e[#{n}D"
end
horizontal_absolute(n) click to toggle source
# File lib/fir/screen_helper.rb, line 14
def horizontal_absolute(n)
  "\e[#{n}G"
end
line_prompt(prompt = '>') click to toggle source
# File lib/fir/screen_helper.rb, line 26
def line_prompt(prompt = '>')
  "(fir)#{prompt} "
end
next_line(n) click to toggle source
# File lib/fir/screen_helper.rb, line 10
def next_line(n)
  "\e[#{n}E"
end
previous_line(n) click to toggle source
# File lib/fir/screen_helper.rb, line 6
def previous_line(n)
  "\e[#{n}F"
end