lib/vedeu/output/compositor.rb in vedeu-0.2.5 vs lib/vedeu/output/compositor.rb in vedeu-0.2.6
- old
+ new
@@ -24,15 +24,22 @@
# Send the view to the terminal.
#
# @return [Array]
def render
- Terminal.output(view)
+ Terminal.output(view, cursor)
end
private
attr_reader :name
+
+ # Renders the cursor into the currently focussed interface. May be hidden.
+ #
+ # @return [String]
+ def cursor
+ Interface.new(Vedeu::Interfaces.find(Focus.current)).cursor.to_s
+ end
# Renders the buffer unless empty, otherwise clears the area which the
# interface occupies.
#
# @return [String]