def convert_value_to_text r
        str = []
        fmt = nil
        field = nil
        # we need to loop through chash and get index from it and get that row from r
        each_column {|c,i|
          e = r[c.index]
          w = c.width
          l = e.to_s.length
          # if value is longer than width, then truncate it
          if l > w
            fmt = "%.#{w}s "
          else
            case c.align
            when :right
              fmt = "%#{w}s "
            else
              fmt = "%-#{w}s "
            end
          end
          field = fmt % e
          # if we really want to print a single column with color, we need to print here itself
          # each cell. If we want the user to use tmux formatting in the column itself ...
          # FIXME - this must not be done for headers.
          #if c.color
          #field = "#[fg=#{c.color}]#{field}#[/end]"
          #end
          str << field
        }
        return str
      end
def convert_value_to_text r
        str = []
        fmt = nil
        field = nil
        # we need to loop through chash and get index from it and get that row from r
        each_column {|c,i|
          e = r[c.index]
          w = c.width
          l = e.to_s.length
          # if value is longer than width, then truncate it
          if l > w
            fmt = "%.#{w}s "
          else
            case c.align
            when :right
              fmt = "%#{w}s "
            else
              fmt = "%-#{w}s "
            end
          end
          field = fmt % e
          # if we really want to print a single column with color, we need to print here itself
          # each cell. If we want the user to use tmux formatting in the column itself ...
          # FIXME - this must not be done for headers.
          #if c.color
          #field = "#[fg=#{c.color}]#{field}#[/end]"
          #end
          str << field
        }
        return str
      end
Takes the array of row data and formats it using column widths
 and returns an array which is used for printing

 return an array so caller can color columns if need be