Set text attributes at the specified coordinates
void setAttributes(int x, int y, int attr) { final index = _getIndex(x, y); attributes[index] = attr; }