lib/vedeu/interfaces/clear.rb in vedeu-0.8.30 vs lib/vedeu/interfaces/clear.rb in vedeu-0.8.31

- old
+ new

@@ -69,17 +69,15 @@ # For each visible line of the interface, set the foreground and # background colours to those specified when the interface was # defined, then starting write space characters over the area # which the interface occupies. # - # @return [Array<Array<Vedeu::Cells::Char>>] + # @return [Array<Array<Vedeu::Cells::Clear>>] def output Vedeu.timer("Clearing interface: '#{name}'") do - @_clear ||= Array.new(height) do - Array.new(width) do - Vedeu::Cells::Clear.new(colour: colour, name: name) - end - end + @_clear ||= Vedeu::Buffers::Clear.new(height: height, + name: name, + width: width).buffer end end end # Clear