getFgMatrix method

List<List<String>> getFgMatrix()

Returns a 2D list of foreground colors as printable strings.

Implementation

List<List<String>> getFgMatrix() => bufferState
    .map(
      (row) => row
          .map((cell) => (cell.foregroundColor?.printableFg ?? 'default'))
          .toList(),
    )
    .toList();