Sha256: 4d1a0b57b18c38979e8ecd41a5c523b7ee63ecc33ae87be0e8bffcd02aec9779
Contents?: true
Size: 966 Bytes
Versions: 1
Compression:
Stored size: 966 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'vedeu' # An example application to demonstrate 'Hello World'. # # If you have cloned this repository from GitHub, you can run this example: # # ./examples/hello_world.rb # class HelloWorldApp Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) } Vedeu.configure do # debug! log '/tmp/vedeu_hello_world.log' end Vedeu.interface 'messages' do background '#000000' foreground '#00ff00' geometry do centred! height 5 width 20 end keymap do key('q') { Vedeu.exit } end end Vedeu.renders do view 'messages' do lines do line do centre 'Hello World!', width: 20 end line line do centre "Press 'q' to exit.", width: 20 end end end end def self.start(argv = ARGV) Vedeu::Launcher.execute!(argv) end end # HelloWorldApp HelloWorldApp.start(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.6.21 | test/support/examples/hello_world.rb |