# File raggle, line 2819 def draw_text(text, x, y, reflow, offset) if text && text.size > 0 w,h = dimensions i = 0 text = reflow_string text if reflow text.each_line do |line| line = line.chomp i += 1 if i >= offset && y < (h - 1) Ncurses::mvwprintw @win, y, x, line.escape_format.slice(0, w - x - 1) y += 1 end end end y end