Add support for autodetecting URLs and making hyperlinks (#7691)

This pull request is the initial implementation of hyperlink auto
detection

Overall design:
- Upon startup, TerminalCore gives the TextBuffer some patterns it
  should know about
- Whenever something in the viewport changes (i.e. text
  output/scrolling), TerminalControl tells TerminalCore (through a
  throttled function for performance) to retrieve the visible pattern
  locations from the TextBuffer
- When the renderer encounters a region that is associated with a
  pattern, it paints that region differently 

References #5001
Closes #574
This commit is contained in:
PankajBhojwani
2020-10-28 16:24:43 -04:00
committed by GitHub
parent 8e3f27f8fb
commit 2bf5d18c84
25 changed files with 969 additions and 18 deletions

View File

@@ -91,6 +91,9 @@
// {fmt}, a C++20-compatible formatting library
#include <fmt/format.h>
#define USE_INTERVAL_TREE_NAMESPACE
#include <IntervalTree.h>
// SAL
#include <sal.h>