Sha256: a3c7f00403a2d5480e662fe4880fd15b0c552c2792594fb35e3b002869069b6e

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

#!/usr/bin/env ruby

lib_dir = File.dirname(__FILE__) + '/../lib'
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)

-> { its -> { a } }
trap('INT') { exit! }

require 'vedeu'

class VedeuColoursApp
  include Vedeu

  configure do
    colour_mode 16777216
    debug!
    log '/tmp/vedeu_colours_app.log'
  end

  bind(:_initialize_) { Vedeu.trigger(:_refresh_) }

  interface 'colours' do
    border do
    end
    geometry do
      centred!
      height 8
      width  8
    end
    colour foreground: '#000000', background: '#000000'
  end

  renders do
    view('colours') do
      lines do

      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.3.1 examples/colours_app.rb
vedeu-0.3.0 examples/colours_app.rb