function colorLines(name, str) {
    return str
      .split('\n')
      .map(function (str) {
        return color(name, str);
      })
      .join('\n');
  }
Colors lines for `str`, using the color `name`.

@private
@param {string} name
@param {string} str
@return {string}