lib/vedeu/bindings/visibility.rb in vedeu-0.6.14 vs lib/vedeu/bindings/visibility.rb in vedeu-0.6.15

- old
+ new

@@ -12,10 +12,11 @@ # Setup events relating to visibility. This method is called by # Vedeu. # # @return [TrueClass] def setup! + clear! clear_group! hide_cursor! hide_group! hide_interface! show_cursor! @@ -27,9 +28,22 @@ end private # :nocov: + + # See {file:docs/events/system.md#\_cleanup_} + def clear! + Vedeu.bind(:_clear_) do |name| + if name + Vedeu::Clear::NamedInterface.render(name) + + else + Vedeu::Terminal::Buffer.clear + + end + end + end # See {file:docs/events/visibility.md#\_clear_group_} def clear_group! Vedeu.bind(:_clear_group_) do |name| Vedeu::Clear::NamedGroup.render(name)