def print_top_right(htext)
      hlen = htext.length
      len = @window.getmaxx # width was not changing when resize happens
      len = Ncurses.COLS-0 if len == 0 || len > Ncurses.COLS
      #$log.debug " def print_top_right(#{htext}) #{len} #{Ncurses.COLS} "
      @form.window.printstring 0, len-hlen, htext, @color_pair, @attr
    end
def print_top_right(htext)
      hlen = htext.length
      len = @window.getmaxx # width was not changing when resize happens
      len = Ncurses.COLS-0 if len == 0 || len > Ncurses.COLS
      #$log.debug " def print_top_right(#{htext}) #{len} #{Ncurses.COLS} "
      @form.window.printstring 0, len-hlen, htext, @color_pair, @attr
    end
internal method to print text_right