def printstring_formatted(r,c,content, color, att = Ncurses::A_NORMAL)
      att = get_attrib att unless att.is_a? Integer
      chunkline = convert_to_chunk(content, color, att)
      printstring_or_chunks r,c, chunkline, color, att
    end
def printstring_formatted(r,c,content, color, att = Ncurses::A_NORMAL)
      att = get_attrib att unless att.is_a? Integer
      chunkline = convert_to_chunk(content, color, att)
      printstring_or_chunks r,c, chunkline, color, att
    end
prints a string formatted in our new experimental coloring format
 taken from tmux. Currently, since i have chunks workings, i convert
 to chunks and use the existing print function. This could change.
 An example of a formatted string is:
 s="#[fg=green]testing chunks #[fg=yellow, bg=red, bold]yellow #[reverse] reverseme \
  #[normal]normal#[bg = black]just yellow#[fg=blue],blue now #[underline] underlined text"
 Ideally I should push and pop colors which the shell does not do with ansi terminal sequences.
 That way i can have a line in red,
  with some word in yellow, and then the line continues in red.