lib/vedeu/output/renderers/all.rb in vedeu-0.6.42 vs lib/vedeu/output/renderers/all.rb in vedeu-0.6.43

- old
+ new

@@ -16,10 +16,13 @@ # Vedeu.renderers.clear # # @return [Array<void>] def clear threads = storage.map do |renderer| + Vedeu.log(type: :output, + message: "Clearing via #{renderer.class.name}") + Thread.new(renderer) do mutex.synchronize do toggle_cursor { renderer.clear } end end @@ -47,10 +50,13 @@ # # @param output [void] # @return [Array<void>] def render(output) threads = storage.map do |renderer| + Vedeu.log(type: :output, + message: "Rendering via #{renderer.class.name}") + Thread.new(renderer) do mutex.synchronize do toggle_cursor { renderer.render(output) } end end @@ -125,12 +131,9 @@ :renderers end # Vedeu require 'vedeu/output/renderers/options' -require 'vedeu/output/renderers/escape_sequence' require 'vedeu/output/renderers/file' require 'vedeu/output/renderers/html' require 'vedeu/output/renderers/json' -require 'vedeu/output/renderers/null' require 'vedeu/output/renderers/terminal' -require 'vedeu/output/renderers/text'