meli/src/terminal
Manos Pitsidianakis 3e31c46a74
Add "regexp" feature, format text with regexps
`regexp` feature uses the pcre2 library to enable the user to define
regular expressions for matching text and applying text formatting to
the matches. An example from the theme configuration I used to test
this:

  [terminal.themes.win95.text_format_regexps]
  "listing.subject" = { "\\[[^\\]]*\\]" = { attrs = "Bold" } }
  "listing.from" = { "\\<[^\\>]*\\>(?:(?:\\s*$)|(?=,))" = { attrs = "Italics" } }

  [terminal.themes.win95.text_format_regexps."pager.envelope.body"]
  "^>.*$" = { attrs = "Italics" }
  "\\d+\\s?(?:(?:[KkMmTtGg]?[Bb])|(?:[KkMmTtGg][Bb]?)(?=\\s))" = { attrs = "Bold | Underline" }
2020-06-05 10:56:36 +03:00
..
embed ui: add ThemeAttribute argument to clear_area() 2020-02-08 23:54:15 +02:00
cells.rs Add "regexp" feature, format text with regexps 2020-06-05 10:56:36 +03:00
embed.rs Overhaul input thread 2020-05-29 15:43:05 +03:00
keys.rs Overhaul input thread 2020-05-29 15:43:05 +03:00
position.rs ui: move box drawing to src/terminal 2020-02-08 23:54:15 +02:00
text_editing.rs Remove text_processing 2020-02-04 17:29:55 +02:00