def show_colored_chunks(chunks, defcolor = nil, defattr = nil, wid = 999, pcol = 0)
      return unless visible?
      ww = 0
      chunks.each_with_color do |text, color, attrib|

        ## 2013-03-08 - 19:11 take care of scrolling by means of pcol
        if pcol > 0
          if pcol > text.length 
            # ignore entire chunk and reduce pcol
            pcol -= text.length
            next
          else
            # print portion of chunk and zero pcol
            text = text[pcol..-1]
            pcol = 0
          end
        end
        oldw = ww
        ww += text.length
        if ww > wid
          # if we are exceeding the width then by howmuch
          rem = wid - oldw
          if rem > 0
            # take only as much as we are allowed
            text = text[0,rem]
          else
            break
          end
        end

        color ||= defcolor
        attrib ||= defattr

        cc, bg = ColorMap.get_colors_for_pair color
        #$log.debug "XXX: CHUNK window #{text}, cp #{color} ,  attrib #{attrib}. #{cc}, #{bg} " 
        color_set(color,nil) if color
        wattron(attrib) if attrib
        #print(text)
        waddnstr(text.to_s, @width) # changed 2014-04-22 - 11:59  to reduce a function
        wattroff(attrib) if attrib
      end
    end
def show_colored_chunks(chunks, defcolor = nil, defattr = nil, wid = 999, pcol = 0)
      return unless visible?
      ww = 0
      chunks.each_with_color do |text, color, attrib|

        ## 2013-03-08 - 19:11 take care of scrolling by means of pcol
        if pcol > 0
          if pcol > text.length 
            # ignore entire chunk and reduce pcol
            pcol -= text.length
            next
          else
            # print portion of chunk and zero pcol
            text = text[pcol..-1]
            pcol = 0
          end
        end
        oldw = ww
        ww += text.length
        if ww > wid
          # if we are exceeding the width then by howmuch
          rem = wid - oldw
          if rem > 0
            # take only as much as we are allowed
            text = text[0,rem]
          else
            break
          end
        end

        color ||= defcolor
        attrib ||= defattr

        cc, bg = ColorMap.get_colors_for_pair color
        #$log.debug "XXX: CHUNK window #{text}, cp #{color} ,  attrib #{attrib}. #{cc}, #{bg} " 
        color_set(color,nil) if color
        wattron(attrib) if attrib
        #print(text)
        waddnstr(text.to_s, @width) # changed 2014-04-22 - 11:59  to reduce a function
        wattroff(attrib) if attrib
      end
    end
Previously this printed a chunk as a full line, I've modified it to print on
  one line. This can be used for running text.
  NOTE 2013-03-08 - 17:02 added width so we don't overflow
  NOTE 2014-05-11 - textpad has its own version, so does not call this.