lib/vedeu/interface/interface.rb in vedeu-0.0.6 vs lib/vedeu/interface/interface.rb in vedeu-0.0.7

- old
+ new

@@ -23,13 +23,17 @@ def input evaluate end def output(command) - Compositor.write(command) + Compositor.write(command, self) end + def geometry + @geometry ||= Geometry.new(options[:geometry]) + end + private attr_reader :options def evaluate @@ -38,25 +42,16 @@ def read Terminal.input end - def width - options[:width] - end - - def height - options[:height] - end - def options defaults.merge!(@options) end def defaults { - width: Terminal.width, - height: Terminal.height + geometry: {} } end end end