Sha256: d48138d467961c44b2f98137f0e2017608bf8b8418688a4c81b2ad3f4e21bf0b

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

#!/usr/bin/env ruby

# ?

require 'rubygems'
require "newt"

begin

  Newt::Screen.new

  t = Newt::Textbox.new(1, 1, 20, 10, Newt::FLAG_WRAP)
  t.set_text("Line1\nLine2\nLine3")
  t.set_height(5)

  b = Newt::Button.new(1, 13, "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/Textbox_set_height.rb
newt-0.9.2 examples/test_method/Textbox_set_height.rb