displayWidth(str) {
    return stripColor(str).length;
  }
Return display width of string, ignoring ANSI escape sequences. Used in padding and wrapping calculations.

@param {string} str
@returns {number}