def message message # yield label or field being used for display for further customization
      @suggested_h = @height || 10
      message = message.gsub(/[\n\r\t]/,' ') rescue message
      message_col = 5
      @suggested_w = @width || [message.size + 8 + message_col , FFI::NCurses.COLS-2].min
      r = 3
      len = message.length
      @suggested_w = len + 8 + message_col if len < @suggested_w - 8 - message_col

      display_length = @suggested_w-8
      display_length -= message_col
      message_height = 2
      clr = @color || :white
      bgclr = @bgcolor || :black

      # trying this out. sometimes very long labels get truncated, so i give a field in wchich user
      # can use arrow key or C-a and C-e
      if message.size > display_length
        message_label = Canis::Field.new @form, {:text => message, :name=>"message_label",
          :row => r, :col => message_col, :width => display_length,  
          :bgcolor => bgclr , :color => clr, :editable => false}
      else
        message_label = Canis::Label.new @form, {:text => message, :name=>"message_label",
          :row => r, :col => message_col, :width => display_length,  
          :height => message_height, :bgcolor => bgclr , :color => clr}
      end
      @maxrow = 3
      yield message_label if block_given?
    end
def message message # yield label or field being used for display for further customization
      @suggested_h = @height || 10
      message = message.gsub(/[\n\r\t]/,' ') rescue message
      message_col = 5
      @suggested_w = @width || [message.size + 8 + message_col , FFI::NCurses.COLS-2].min
      r = 3
      len = message.length
      @suggested_w = len + 8 + message_col if len < @suggested_w - 8 - message_col

      display_length = @suggested_w-8
      display_length -= message_col
      message_height = 2
      clr = @color || :white
      bgclr = @bgcolor || :black

      # trying this out. sometimes very long labels get truncated, so i give a field in wchich user
      # can use arrow key or C-a and C-e
      if message.size > display_length
        message_label = Canis::Field.new @form, {:text => message, :name=>"message_label",
          :row => r, :col => message_col, :width => display_length,  
          :bgcolor => bgclr , :color => clr, :editable => false}
      else
        message_label = Canis::Label.new @form, {:text => message, :name=>"message_label",
          :row => r, :col => message_col, :width => display_length,  
          :height => message_height, :bgcolor => bgclr , :color => clr}
      end
      @maxrow = 3
      yield message_label if block_given?
    end
Pass a short message to be printed.
 This creates a label for a short message, and a field for a long one.
 @yield field created
 @param [String] text to display