require 'curses'

module PPCurses

  class PPWindow < Curses::Window

    def initialize(height, width, top, left)
      super(height,width,top,left)

      keypad(true)
      box('|', '-')
    end

  end



end

require 'curses'

module PPCurses

  class PPWindow < Curses::Window

    def initialize(height, width, top, left)
      super(height,width,top,left)

      keypad(true)
      box('|', '-')
    end



    # EXPERIMENTAL/HACK
    #
    # The following could be used to wrap all getch calls
    # and support window resizes when the getch is blocking
    # all threads.
    #
    def get_ch_handle_signals
      got_input = false
      until got_input
        begin
          c = getch
          got_input = true
        rescue NoMethodError
          # Assuming a SIGWINCH occurred -- reposition..
          c = ''
        end
      end

      c
    end

  end



end

Add hack method to Window
Add hack method to Window
