@Override
  public int compareTo(Object other) {
    return getMono().compareTo(((ColorBuffer) other).getMono());
  }
Truncate the ColorBuffer to the specified length and return
the new ColorBuffer. Any open color tags will be closed.
Do nothing if the specified length is <= 0.
beeline/src/java/org/apache/hive/beeline/ColorBuffer.java