diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-19 12:19:17 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-19 12:19:17 +0100 |
| commit | 6bc5f8c3a3f0ef2e0a4bfb51beb756608554597e (patch) | |
| tree | 5c6333282cd0c3bf2e71b0528567180a0b974720 /src/display_buffer.hh | |
| parent | db8c12fd2a9ccb3d44445e4539bc10a0f4e5c7e6 (diff) | |
Add simple markup support to generate display lines from strings
The syntax is simply {face} to enable the given face, use \{ to
escape a {, and \\ to escape a \.
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 97b717b1..9670325a 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -140,6 +140,8 @@ private: AtomList m_atoms; }; +DisplayLine parse_display_line(StringView line, Face default_face); + class DisplayBuffer : public UseMemoryDomain<MemoryDomain::Display> { public: |
