getHash method
A hash of the four values, the same one xterm computes.
Implementation
int getHash() {
var hash = 0;
hash = _combine(hash, foreground);
hash = _combine(hash, background);
hash = _combine(hash, flags);
hash = _combine(hash, content);
return _finish(hash);
}