module TerminalActions
Public Instance Methods
clear_screen()
click to toggle source
# File lib/terminal_actions.rb, line 2 def clear_screen return "\e[2J" end
clear_to_line_end()
click to toggle source
# File lib/terminal_actions.rb, line 14 def clear_to_line_end return "\e[K" end
hide_cursor()
click to toggle source
# File lib/terminal_actions.rb, line 6 def hide_cursor return "\e[?25l" end
move_to_bottom()
click to toggle source
# File lib/terminal_actions.rb, line 22 def move_to_bottom return "\e[2000E" end
move_to_top_left()
click to toggle source
# File lib/terminal_actions.rb, line 10 def move_to_top_left return "\e[H" end
show_cursor()
click to toggle source
# File lib/terminal_actions.rb, line 18 def show_cursor return "\e[?25h" end