lib/vedeu/cursor/cursor.rb in vedeu-0.4.16 vs lib/vedeu/cursor/cursor.rb in vedeu-0.4.17

- old
+ new

@@ -6,12 +6,15 @@ # Each interface has its own Cursor which maintains the position and # visibility of the cursor within that interface. # class Cursor + extend Forwardable include Vedeu::Model + def_delegators Vedeu::Esc, :hide_cursor, :show_cursor + # @!attribute [r] attributes # @return [Hash] attr_reader :attributes # @!attribute [r] name @@ -131,13 +134,13 @@ # Returns the escape sequence for setting the visibility of the cursor. # # @return [String] def visibility if visible? - Vedeu::Esc.string('show_cursor') + show_cursor else - Vedeu::Esc.string('hide_cursor') + hide_cursor end end end # Cursor