Sha256: d19cfae9325c8be459aba2ebe7c5747ad459383e854c2c91663bbae6288d7c70
Contents?: true
Size: 992 Bytes
Versions: 1
Compression:
Stored size: 992 Bytes
Contents
#!/usr/bin/env ruby require 'vedeu' class SingleInterfaceApp include Vedeu interface :main, { y: 1, x: 1, width: :auto, height: :auto, foreground: :white, background: :black, cursor: true, layer: 0 } command :refresh, { entity: SingleInterfaceApp, keyword: 'refresh', keypress: 'r', arguments: [] } command :exit, { entity: Vedeu::Exit, keyword: 'exit', keypress: 'q', arguments: [] } def self.start Vedeu::Launcher.new(ARGV.dup).execute! end def self.dispatch { 'main' => [ [ { :text => "The time is: #{Time.now}.", } ] ] } end end SingleInterfaceApp.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | examples/single_interface_app.rb |