function localLinksInit(
  term: Terminal,
  handler: (event: MouseEvent, uri: string) => void = handleLink,
  options: ILinkMatcherOptions = {}
): void {
  options.matchIndex = 1; // LOCAL_LINK_PRIORITY;

  // todo: Is platform allowed as option in xterm? If not how to handle it correctly?
  const baseLocalLinkClause =
    options.platform === 'win32' ? winLocalLinkClause : unixLocalLinkClause;

  // Append line and column number regex
  const localLinkPattern = new RegExp(
    `${baseLocalLinkClause}(${lineAndColumnClause})`
  );

  term.registerLinkMatcher(localLinkPattern, handler, options);
}
Initialize the relative links addon, registering the link matcher.
@param term The terminal to use relative links within.
@param handler A custom handler to use.
@param options Custom options to use, matchIndex will always be ignored.