cellsEqual method

bool cellsEqual(
  1. int x,
  2. int y,
  3. Buffer other,
  4. int ox,
  5. int oy,
)

Whether all cell channels (char, fg, bg, modifiers, underlineColor, uri) at (x, y) match other at (ox, oy).

Implementation

bool cellsEqual(int x, int y, Buffer other, int ox, int oy) =>
    getCharacter(x, y) == other.getCharacter(ox, oy) &&
    getForeground(x, y) == other.getForeground(ox, oy) &&
    getBackground(x, y) == other.getBackground(ox, oy) &&
    getModifiers(x, y) == other.getModifiers(ox, oy) &&
    getUnderlineColor(x, y) == other.getUnderlineColor(ox, oy) &&
    getUri(x, y) == other.getUri(ox, oy);