Module termwiz::hyperlink

source ·
Expand description

Handling hyperlinks. This gist describes an escape sequence for explicitly managing hyperlinks: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda We use that as the foundation of our hyperlink support, and the game plan is to then implicitly enable the hyperlink attribute for a cell as we recognize linkable input text during print() processing.

Structs§

  • In addition to handling explicit escape sequences to enable hyperlinks, we also support defining rules that match text from screen lines and generate implicit hyperlinks. This can be used both for making http URLs clickable and also to make other text clickable. For example, you might define a rule that makes bug or issue numbers expand to the corresponding URL to view the details for that issue. The Rule struct is configuration that is passed to the terminal and is evaluated when processing mouse hover events.
  • Holds a resolved rule match.