Sha256: 9885854b03b827843682f385b43edd1e81d9ecb3472b19da29e67c01897f01c0

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

#!/usr/bin/env ruby

# frozen_string_literal: true

require 'bundler/setup'
require 'vedeu'

class DSLApp

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

  Vedeu.configure do
    debug!
    log '/tmp/vedeu_views_dsl.log'
    run_once!
    standalone!
  end

  Vedeu.interface :test1_interface do
    border do
      title 'Test 1'
    end
    geometry do
      x  4
      y  3
      xn 34
      yn 8
    end
  end

  Vedeu.render do
    view(:test1_interface) do
      lines do
        streams do
          stream 'v->ls->ss->stream 1', { foreground: '#00ff00' }
          stream 'v->ls->ss->stream 2', { foreground: '#ff0000' }
        end
      end
    end
  end

  def self.start(argv = ARGV)
    Vedeu::Launcher.execute!(argv)
  end

end # DSLApp

DSLApp.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.1 examples/views/lines_streams_stream.rb