#!/usr/bin/env ruby

require 'rubygems'
require_relative '../../lib/ppcurses.rb'




def display_form


  first_name = PPCurses::InputElement.new("FirstName", 10)
  form = PPCurses::Form.new(Curses)

  Curses.getch

end



screen = PPCurses::Screen.new
screen.run { display_form }




#!/usr/bin/env ruby

require 'rubygems'
require_relative '../../lib/ppcurses.rb'




def display_form

  first_name = PPCurses::InputElement.new('First Name', 10)
  form = PPCurses::Form.new(Curses)

  form.elements.push(first_name)
  form.show

  Curses.getch

end



screen = PPCurses::Screen.new
screen.run { display_form }




Add element to form and call show.
Add element to form and call show.
