lib/ayadn/view.rb in ayadn-1.6.0 vs lib/ayadn/view.rb in ayadn-1.7.0
- old
+ new
@@ -4,9 +4,17 @@
def initialize
@workers = Workers.new
end
+ def show_cursor
+ puts "\e[?25h"
+ end
+
+ def hide_cursor
+ puts "\e[?25l"
+ end
+
def show_posts_with_index(data, options, niceranks = {})
posts, view = build_stream_with_index(data, options, niceranks)
puts view unless view == ""
Databases.save_indexed_posts(posts)
end