getUnderlineColor method

int getUnderlineColor(
  1. int x,
  2. int y
)

Gets the SGR 58 underline color at (x, y), or 0 when using the foreground color.

Implementation

int getUnderlineColor(int x, int y) {
  final ul = _underlineColors;
  if (ul == null || !isCellValid(x, y)) return 0;
  return ul[y * width + x];
}