Sha256: 11b15db80385d35bbe4028df124ba7e8243ca621437080340350b6e0ef584a57

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require "newt"

begin

  Newt::Screen.new

  text = "Line1 Line1 Line1 Line1 Line1 Line1 Line1 Line1 \nLine2"
  t = Newt::TextboxReflowed.new(1, 1, text, 20, 0, 0, 0)

  b = Newt::Button.new(1, 15, "Exit")

  f = Newt::Form.new
  f.add(t, b)

  f.run()

ensure
  Newt::Screen.finish
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newt-0.9.7 examples/test_method/TextboxReflowed_new.rb
newt-0.9.2 examples/test_method/TextboxReflowed_new.rb