hyperlinkAt method

  1. @override
String? hyperlinkAt(
  1. GhosttyTerminalCellPosition position
)
override

Returns the OSC 8 hyperlink at position, if the cell is linked.

Implementation

@override
String? hyperlinkAt(GhosttyTerminalCellPosition position) {
  if (lines.isEmpty || position.row < 0 || position.row >= lines.length) {
    return null;
  }
  return lines[position.row].hyperlinkAtCell(position.col);
}